[texhax] Punctuation around inline diagrams

Andy Farnell padawan12 at obiwannabe.co.uk
Fri Jul 4 20:24:02 CEST 2008



The code for the image include is;

% Graphics include for inline objects
\newcommand{\pdobj}[1]{%
\raisebox{-1pt}{\enspace\includegraphics[angle=0, scale=0.6]%
{./images/objects/#1.ps}}}

Elsewhere I use it as;

Finally we'll use differentiation with \pdobj{object-sd-fexpr} 
and \pdobj{object-sd-clip} to get changes that are positive. 
Modulating the sine wave by the output of \pdobj{object-sd-tm} 

The initial space seemed necessary to stop the objects being
too close to the preceding text. I should mention that the
objects are not fixed width, some are considerably wider than
others.

Thankyou.

Andy



On Fri, 04 Jul 2008 19:40:05 +0200
Lars Madsen <daleif at imf.au.dk> wrote:

> Andy Farnell wrote:
> > Dear list,
> > 
> > I have a problem that needs a little careful explanation as follows.
> > 
> > Within my text I use diagrams as if they were words. Each diagram is a
> > small iconic box corresponding to a software object. I will refer to them
> > here as {object}.
> > 
> > Where an {object} is followed by a comma or period and is typeset so that
> > it appears at the end of a line, the punctuation often appears at the start
> > of the next line. Example:
> >  
> > ----
> > Lorem ipsum dolor sit amet, consectetur....so using this method the {object},
> > which contains the code, will be created automatically. Ut enim ad minim 
> > veniam, quis nostrud exercitation....
> > 
> > will be typeset as 
> >  
> > Lorem ipsum dolor sit amet, consectetur....so using this method the {object}
> > , which contains the code, will be created automatically. Ut enim ad minim 
> > veniam, quis nostrud exercitation....
> > 
> > -----
> > 
> > I would like to bind any comma, semicolon or period more tightly to the {object}
> > or increase the penalty for starting a line with punctuation.
> > 
> > Thankyou for any suggestions.
> > 
> > Andy Farnell
> > 
> > 
> 
> how is {object} created? minimal example? It would appear that there are 
> spurious spaces somewhere
> 
> /daleif
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


-- 
Use the source


More information about the texhax mailing list