LaTeX forum ⇒ Text FormattingHow to change space between letters, for extended words (kerning) ? Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
Cham
Posts: 813
Joined: Sat Apr 02, 2011 4:06 pm

How to change space between letters, for extended words (kerning) ?

Postby Cham » Tue May 30, 2017 2:47 pm

I would like to add an extended effect to a warning sign in the margin. Here's a nice MWE example to work with :

  1. \RequirePackage[l2tabu,orthodox]{nag}
  2. \documentclass[10pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1}
  3. \usepackage[total={6.5in,10in},centering,left=1in,top=0.75in,bottom=0.5in,includefoot]{geometry}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{lmodern}
  6. \usepackage[dvipsnames,table]{xcolor}
  7. \usepackage{blindtext}
  8. \usepackage[printwatermark]{xwatermark}
  9.  
  10. \begin{document}
  11.  
  12. \section{Some section title}
  13.  
  14. \Blindtext
  15.  
  16. \newpage
  17.  
  18. \blindtext
  19.  
  20. \newwatermark*[allpages,angle=90,color=gray!25,scale=1.5,textalign=center,height=\paperheight,width=\paperwidth,xpos=-100,ypos=0]{\bfseries\sffamily TOP SECRET}
  21.  
  22. \subsection{Subsection title}
  23.  
  24. \Blindtext
  25.  
  26. \end{document}


Now, the TOP SECRET warning on the left margin of the second page would be better looking if it was vertically extended a bit. How can I achieve this ? Is there an "extended" command in LaTeX ?

User avatar
cgnieder
Site Moderator
Posts: 1974
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:

Postby cgnieder » Tue May 30, 2017 3:11 pm

Package microtype (which is always a good addition to a LaTeX document because of its many micro-typographic improvements even with its standard settings) provides \textls for this.

  1. \RequirePackage[l2tabu,orthodox]{nag}
  2. \documentclass[10pt,letterpaper,nofootinbib,notitlepage,tightenlines]{revtex4-1}
  3. \usepackage[total={6.5in,10in},centering,left=1in,top=0.75in,bottom=0.5in,includefoot]{geometry}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{lmodern}
  6. \usepackage[dvipsnames,table]{xcolor}
  7. \usepackage{blindtext}
  8. \usepackage[printwatermark]{xwatermark}
  9.  
  10. \usepackage{microtype}
  11.  
  12. \begin{document}
  13.  
  14. \section{Some section title}
  15.  
  16. \Blindtext
  17.  
  18. \newpage
  19.  
  20. \blindtext
  21.  
  22. \newwatermark*[allpages,angle=90,color=gray!25,scale=1.5,textalign=center,height=\paperheight,width=\paperwidth,xpos=-100,ypos=0]{\bfseries\sffamily\textls[100]{TOP SECRET}}
  23.  
  24. \subsection{Subsection title}
  25.  
  26. \Blindtext
  27.  
  28. \end{document}
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

User avatar
Cham
Posts: 813
Joined: Sat Apr 02, 2011 4:06 pm

Postby Cham » Tue May 30, 2017 3:16 pm

Wow ! Thanks a lot !

I do use always the microtype package in all of my LaTeX documents. Its fine tuning is great !


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 5 guests