Tag Info

Hot answers tagged

59

EDITED to allow repeat invocations without having to reset parameters, using the syntax \diminish[scale-down-ratio]{string} The value of \defaultstartht sets the strut height of the first letter (default is set to \baselineskip), and the scale-down ratio defaults to 0.98, but may be supplied as an optional parameter. Beware that arithmetic underflows are ...


20

A recursive macro: \documentclass[border=2]{standalone} \usepackage{mathptmx} % a scalable font is needed \makeatletter \def\makesmaller#1#2{% \dimen0=\dimexpr\dimen0-.08pt\relax \ifx#2\relax \expandafter\@gobble \else {\fontsize{\dimen0}{0}\selectfont#1}% \expandafter\@firstofone \fi {\makesmaller{#2}}% } \def\decreasingpi{% ...


19

Mark Wibrow enhanced the text decoration library of TikZ greatly and you can do all kinds of stuff based on formulas regarding the character number and total count of words and so on. Here is a wacky take on it, (thus a simple monotone scaling along a path is very simple and is possible just by playing with the formula with scale instead of yscale) ...


8

The TeX family evolved and adapted over the years. The image produced below with pdfLaTeX represents where I would like to see (all)TeX evolve one day. Some of my new year wishes: Output routines that enable two page grid typesetting. Output routines that are easily accessed via LuaTeX or LaTeX3. The image is typeset with custom code. The 35 lines of ...


8

Here is a starting point using datatool. I won't discuss the design of the check (layout) as it is a candidate for a separate question. \documentclass{article} \usepackage[a4paper,textheight=5in,left=1in,right=1in]{geometry} %% 5in only for demo \usepackage{xcolor}% \usepackage{adjustbox} % \usepackage{filecontents} \begin{filecontents*}{names.csv} ...


7

Just a small last-minute entry. I find XeLaTeX exceedingly well-suited for East Asian characters and their attendant phonetic descriptions. I realize this entry is quite elementary, but the clean, crisp presentation of vector glyphs, simply & portably executed, is what drew me to TeX in the first place. And so I celebrate that here. (In a (pathetic) ...


7

If you want to stick to the typographical rules you find on this site, you should not use cell colours but some symbol or alike. Please see my example as a start for you. If you don't like the symbol, you might find pleasure in other possibilities I listed here. But I preferred to give a PDFLaTeX solution here. % arara: pdflatex \documentclass{article} ...


4

My example shows how to do this task without any LaTeX packages. Suppose, we have the file names.csv in the format shown in Kumars answer. % in preamble: \newread\infile \def\printletters #1 {\bgroup \endlinechar=-1 \openin\infile=#1 \read\infile to\tmp \printlettersA } \def\printlettersA{\ifeof\infile \egroup \else \read\infile to\tmp ...


3

I am so basic in Latex but I tried and built your original table in Latex, which may also be useful to you. Of course, @LaRiFaRi's answer is better than mine. % pdflatex \documentclass[margin=2mm]{standalone} \usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor \def \pos {\cellcolor{green}} \def \non {\cellcolor{blue}} \def \neg {\cellcolor{red}} ...


3

I think that there are two most sensitive options: increase the first space and make it symmetric: $\langle\,,\rangle$ put \cdots in place of teh arguments: $\langle\cdot,\cdot\rangle$ (this is what I prefer). Typeset versions: In the second one, if you don't like the space after the comma: $\langle\cdot{,}\cdot\rangle$


2

Quite a bit of guidance is provided by Mathematics into Type, by Ellen Swanson and published by the American Mathematical Society: ftp://ftp.ams.org/pub/author-info/documentation/howto/mit-2.pdf There is also some information in the Chicago Manual of Style. Those are both American references. I assume the ISO-80000-2 standard is preferred in Europe. You ...


2

Shamelessly parasitic on Harish Kumar's data, this solution uses textmerg for the merge: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{textmerg}% \usepackage{filecontents} \begin{filecontents*}{names.dat} Mr Sreeram P. 12 Mr Rajaram K. 20 Mr Dhanraj Julien 35 Ms Lalitha S. ...


2

Just another way... \documentclass[varwidth,border=5]{standalone} \usepackage[T1]{fontenc} \usepackage{lmodern} \newdimen\dx \def\dm#1#2{\dx=1em\relax\def\rt{#1}{\Dm#2\dm}} \def\Dm#1{\ifx#1\dm\else\fontsize\dx\dx\selectfont#1\dx=\rt\dx\expandafter\Dm\fi} \begin{document} \dm{0.95}{3.14159265358979323846264338327950288419716939937510} \end{document}



Only top voted, non community-wiki answers of a minimum length are eligible