Text Formatting ⇒ Supertext issue
Supertext issue
... is there a package or something in LaTeX that can do that?
Thanks,
-Wm
- Attachments
-
- text_problem.png (2.48 KiB) Viewed 2583 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Supertext issue
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\newcommand*{\word}[2]{\shortstack{\tiny\smash[b]{#1}\\\rule{0pt}{2ex}#2}}
\begin{document}
\word{article}{The} \word{noun/subject}{fence} \word{LV}{is}
\word{predicate adj.}{white.}
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\newcommand*{\word}[2]{\shortstack{\tiny\smash[b]{#1}\\\rule{0pt}{2ex}#2}}
\newcommand*{\art}[1]{\word{article}{#1}}
\newcommand*{\nounsub}[1]{\word{noun/subject}{#1}}
\newcommand*{\LV}[1]{\word{LV}{is}}
\newcommand*{\predadj}[1]{\word{predicate adj.}{#1}}
\begin{document}
\art{The} \nounsub{fence} \LV{is} \predadj{white.}
\end{document}
Regards
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Re: Supertext issue
Thank you so much.
-Wm