gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-bugs] current_meds_notes placeholder


From: Jim Busser
Subject: Re: [Gnumed-bugs] current_meds_notes placeholder
Date: Thu, 18 Aug 2011 00:38:09 -0700

On 2011-08-16, at 3:46 AM, Karsten Hilbert wrote:

> On Mon, Aug 15, 2011 at 06:12:40PM -0700, Jim Busser wrote:
> 
>> Currently
>> 
>>      $<current_meds_table::latex>$
>> 
>> will return Drug and Regimen, ordered by brand, in which column 1 wraps as 
>> required but
>> 
>>      $<current_meds_notes::latex>$ 
>> 
>> creates a table with three columns
>> 
>>      Substance, Strength, Brand
>> 
>> whose Brand column extends beyond the right page margin and presumably needs 
>> to be redefined so that it will wrap with a
>> 
>>      p{width}
> 
> I don't know how.
> 
> Karsten

I have reverse-engineered what

        $<current_meds_notes::latex>$ 

needs to return. Currently, it yields a \small line labelled

        Additional notes

below which it supplies data from 3 medication columns

        Substance, Strength, Brand

Two problems are observed in the currenlty-substituted template (see below 
CURRENT vs NEEDED).

1) Basically, in order to define a three-column table so as to allow its first 
and third column contents to wrap, they need the following form wherein I have 
assigned those two columns a width because the option

        p{width}

requires that {width} be specified and for this case I suggest 6.5 cm.

in which the first and third columns need the majority of the available width 
and – even despite the accommodation – still need to paragraph-wrap, what we 
need the placeholder to return is a table format

        \noindent address@hidden|p{6.5cm}|l|p{6.5cm}|}

not

        \noindent \begin{tabular}{|l|l|l|l|}

2) we also need to get rid of the empty

        & {\scriptsize }

at the end of each row.

Appended are shots of:

- the "before" output extending to the right page edge and still being out of 
view, vs
- the "after" output (resulting from my direct substitution of what is needed 
in the .tex instance)

-- JIm

        

***************************************************************************************************
* CURRENT
***************************************************************************************************

{\small
\noindent Additional notes

\noindent \begin{tabular}{|l|l|l|l|}
\hline
Substance & Strength & Brand & \\ 
\hline
TADALAFIL & 10MG & CIALIS (TABLET, 10MG) TABLET & {\scriptsize } \\ 
 \hline 
 
CIPROFLOXACIN (CIPROFLOXACIN HYDROCHLORIDE) & 500MG & CIPRO 500 - TAB 500MG 
(TABLET, 500MG) TABLET & {\scriptsize } \\ 
 \hline 
 
TESTOSTERONE CYPIONATE & 100MG & TESTOSTERONE CYPIONATE INJECTION USP (LIQUID, 
100MG) LIQUID & {\scriptsize } \\ 
 \hline 
 
Kohlenmonoxid & 10mg & f6 Zigaretten Zigarette & {\scriptsize } \\ 
 \hline 
 
Nikotin & 0.8mg & f6 Zigaretten Zigarette & {\scriptsize } \\ 
 \hline 
 
Teer & 10mg & f6 Zigaretten Zigarette & {\scriptsize } \\ 
 \hline 


\end{tabular}
}


***************************************************************************************************
* NEEDED
***************************************************************************************************

{\small
\noindent Additional notes

\noindent address@hidden|p{6.5cm}|l|p{6.5cm}|}
\hline
Substance & Strength & Brand \\ 
\hline
TADALAFIL & 10MG & CIALIS (TABLET, 10MG) TABLET \\ 
 \hline 
 
CIPROFLOXACIN (CIPROFLOXACIN HYDROCHLORIDE) & 500MG & CIPRO 500 - TAB 500MG 
(TABLET, 500MG) TABLET \\ 
 \hline 
 
TESTOSTERONE CYPIONATE & 100MG & TESTOSTERONE CYPIONATE INJECTION USP (LIQUID, 
100MG) LIQUID \\ 
 \hline 
 
Kohlenmonoxid & 10mg & f6 Zigaretten Zigarette \\ 
 \hline 
 
Nikotin & 0.8mg & f6 Zigaretten Zigarette \\ 
 \hline 
 
Teer & 10mg & f6 Zigaretten Zigarette \\ 
 \hline 


\end{tabular}
}

***************************************************************************************************

-- Jim

PNG image


PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]