# Tag Info

14

\documentclass{article} \begin{document} $\underline{\nabla}$ \end{document}

12

The pdflatex code of hyperref contains some syntax checks. According to this checks your syntax of the pdfborderstyle option is wrong (there should be no pt in the value). hyperref warns you in the log (of the pdflatex compilation) that it will ignore the option: Package hyperref Warning: Invalid value /S/S/W 0.6pt' (hyperref) for option ...

11

Using LuaTeX, you can use an attribute to mark the characters you want to underline. This does not interfere with kerning/ligaturing/line breaking because it only acts after all this is finished. I added some extra flexibility for customized line thickness, placing, duck underlines, ... but the callback basically just iterates over the node tree and draws ...

10

Put the \textenglish{aaa} block inside the same \uline: \documentclass[a4paper,numbers=noenddot]{scrartcl} \usepackage{fontspec} \PassOptionsToPackage{normalem}{ulem} \usepackage{ulem} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \defaultfontfeatures{Scale=MatchUppercase, Ligatures=TeX} \newfontfamily\hebrewfont[Script=Hebrew]{David CLM ...

9

This is going to be very hard with biblatex because \uline can not deal with complicated macros in its argument. But due to the way biblatex works we would inevitably end up feeding extremely complicated macros to \uline. Simple things like \uline{\printtext{foo}} seem to work fine, but \uline{\printfield{title}} already broke when the title was to be ...

8

First some stylistic remarks. There is no reason for using different types of emphasis for “vector space” and “vector addition”. Underlining for emphasis is a method used with typewriters, where nothing better was available; it's not used in good typography. Boldface type is good for making titles more visible; in the text body it's too heavy. u, v and w ...

8

the pdf link annotation itself can render an underline. \documentclass[letterpaper, 10pt]{article} \usepackage[letterpaper, margin=1in]{geometry} \usepackage[breaklinks]{hyperref} \hypersetup{urlbordercolor=0 0 0,pdfborderstyle={/S/U/W 1}} \begin{document} Text: \url{http://test.com/uline-text/uline-text/uline-text/uline-text/uline-text/uline-text/uline-...

8

As you have found out there are several techniques how to implement underlines and none (of those I know) fulfills all of your requirements. Therefore I have written a wrapper \myul which selects one technique to use in this case based on the context (math mode or normal mode). With an optional argument you can manually specify color, thickness, depth and ...

8

Even though I use boxes as part of my logic, with my most recent EDIT, this does all including the very important auto-linebreak. It also handles math versus text mode seamlessly. The syntax is \bunderline[<color>][<thickness>]{content} and \buonslide[<color>][<thickness>]<<beamer-slide-spec>>{content} As it is, for ...

7

\underdashes and \underdots are available in ConTeXt out-of-the-box. An \underdashdots can be easily made with some MetaFun. \startuseMPgraphic{rules:under:dashdot} draw ((0,RuleDepth) -- (RuleWidth,RuleDepth)) shifted (0,RuleFactor*RuleOffset) dashed dashpattern(on RuleFactor/2 off RuleFactor/2 on RuleThickness off RuleFactor/2)...

7

The syntax of the proposed command is \segments[<width>]{<string>}{<segments>;<segments>;...} where <width> is the width of the cells (default 1em), <string> is the string to typeset and <segments> is a list of cells to underline. Such a list consists of single numbers or <number>-<number> to mean the ...

6

I'd take egreg's advice, but if you're dead serious about using the underline, the ulem package is your thing: \documentclass{article} \usepackage[normalem]{ulem} \begin{document} \underline{Which} \underline{question}? \uline{Which} \uline{question}? \end{document}

6

Do the following self explanatory combinations work for you? (Leaving aside aesthetic issues.) \documentclass{article} \usepackage{ulem} \begin{document} I think computer \uline{viruses should count as life. I think it says something about human nature} that the only form of life we have created so far is purely destructive. We've created life in our own ...

6

With expl3, with support for accented characters: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} % just for testing strange chars \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\ctest}{m} { % set the token list to the upper case version of the inptu \tl_set:Nx \l_tmpa_tl { \tl_upper_case:n { #1 } } % replace ...

6


5

I'm not sure you're using the right tool for the job and I'd be wary of redefining \verb. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand\iverb{v} { \xyz_verbit_split:n { #1 } } \cs_new_protected:Nn \xyz_verbit_split:n { \texttt { \underline { \tl_head:n { #1 } } \tl_tail:n { #1 } } } \ExplSyntaxOff \...

5

This possibly partially satisfies the criteria for your third choice. Hopefully, somebody can come up with something better - at least something which definitely fully satisfies the criteria for your third choice, for example. I started by downloading Martin Scharrer's code from https://bitbucket.org/martin_scharrer/tikzpagelayers. Out-of-the-box, I could ...

5

Package soul can support commands without and with one argument. \textcolor uses two arguments, therefore a new command is defined in the following example for \soulregister. The different line color can be fixed by setting the color for the line explicitly using \setulcolor. \documentclass{article} \usepackage{color} \usepackage{soul} \definecolor{Gray}{...

5

In TeX \underline is a math-mode primitive, meaning that $\underline{abc}$ \bye yields an underlined abc, while \underline{abc} \bye raises an error. LaTeX makes a wrapper around this (latex.ltx lines 5043-5047) \let\@@underline\underline \def\underline#1{% \relax \ifmmode\@@underline{#1}% \else $\@@underline{\hbox{#1}}\m@th$\relax\fi} Here, ...

5

Something like this? \documentclass[11pt, french, english]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage[left=22mm, right=14mm, top=12mm, bottom=25mm, showframe]{geometry} \usepackage[table, svgnames]{xcolor} \usepackage{titlesec} \titleformat{\section}{\sffamily\Large\bfseries\rlap{\color{RoyalBlue!90}\rule[-0....

5

At least for the simple case you describe, it's sufficient to add \hfill 40 taka to the last element of each list. \foreach \x in {চাল,ডাল,লবণ,তেল,মরিচ,পেঁয়াজ,রসুন,আদা,মুরগী,মশলা,রিক্সা ভাড়া\hfill 40 taka}

5


4

If I look in the source for the documentation (file cloze.dtx), I see \begin{clozeexample} es \cloze{Te\-le\-kom\-mu\-ni\-ka\-tions\-ü\-ber\-wach\-ung} geht \cloze{Un\-ter\-neh\-mens\-steu\-er\-fort\-ent\-wick\-lungs\-ge\-setz} \cloze{Ab\-teil\-ungs\-lei\-ter\-in} \cloze{Ober\-kom\-mi\-sar\-in} auch \cloze{Fil\-lial\-lei\-ter\-in} kurz \cloze{Ober\-kom\-mi\-...

4

Use the abilities of your editor to replace the string \verb by \myverb. There are also tools that can do it for a bunch of files (in case you have too many files to open them all by hand). Then add the definition \def\myverb|#1#2|{\texttt{\underline{#1}#2}} to your preamble. It assumes that there is at least one token between the vertical bars. \...

4

This is another TikZ solution (actually a TikZ + soul solution), based in Gonzalo Medina's variation (https://tex.stackexchange.com/a/52336/105447) of Antal Spector-Zabusky's answer (https://tex.stackexchange.com/a/6029/105447) to "Cool Text Highlighting in LaTeX". It essentially uses soul and some soul internals to supply coordinates to a TikZ drawing (my ...

4

Use \makebox[.5\textwidth][l]{...} inside the argument of \underline. Example: \documentclass{article} \usepackage{setspace} \usepackage{soul} \begin{document} \pagenumbering{gobble} \begin{spacing}{1.4} \noindent \underline{\makebox[0.5\textwidth][l]{PdP snc, Uncle Scrooge}} \\ \underline{\makebox[0.5\textwidth][l]{123 BullSlaughter hill, Duckburg}} \\ \...

4

Here's a LuaLaTeX-based solution. \documentclass{article} \usepackage{luacode} % for 'luacode' env. and '\luastring' macro %% Lua-side code \begin{luacode} function ctest ( s ) tex.sprint (string.upper ( string.gsub ( s , "%s" , "\\_" ) ) ) end \end{luacode} %% LaTeX-side code \newcommand\ctest[1]{\directlua{ctest(\luastring{#1})}} \begin{document} \...

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