Soul package latex. Post by letty » Sat May 01, 2010 1:49 pm .


Soul package latex Introduction. If I understand soul package documentation properly, it's a problem with "grouping hyphenatable material" or font switching commands, isn't it? Unfortunately, I've no idea how to fix it. They worked with the \ref and \cite commands. LaTeX‘s basic \underline command works well for straightforward situations. Simply taking the soul package out of the header for the print-out version doesn't work, as that leaves the \hl command undefined. sty’. 0 the fix is no longer needed. Thus far I'm unable to properly combine So I am writing an assignment in Latex. \hlc, though, leaves excess space around the highlighted text, particularly before but also after. Questions. Uwe Kern, is built on top of the color package (and thus the x at the beginning, To produce text with a colored underline, we will have to make use of the external soul package, written by Melchior Franz. : \hl{é}). The package theoretically offers four options: normalem, ULforem, normalbf, and UWforbf. user49915 Posts: 81 Joined: Wed Apr 17, 2019 10:51 am (soul or soulutf8) + microtype = ☇ Package soul Error: Reconstruction failed. So basically this is how it should look in a LaTex generated PDF as well: Googling for latex highlight paragraph blog posts like e. Including the Package. Am I supposed to register some command with \soulregister? The package provides an \ul (underline) command which will break over line ends; this technique may be used to replace \em (both in that form and as the \emph command), so as to make output look as if it comes from a typewriter. Later \spaceskip is used in \SOUL@uleveryspace for setting the space: 2. Also, you can use the amsmath To color text in a document, you first need to add the color or xcolor package to the preamble of your LaTeX file. Highlighting, and removing highlights. 130 \expandafter\ifx\csname SOUL@\endcsname\relax In case of plain TEX package soul de nes some macros in a simple manner that will break the de nitions of miniltx. answered Mar 5, 2015 at 10:26. All font switching macros like \emph and \bf (the later being outdated, of course) are 'registered' to prevent soul to analyze them but to execute them immediately ('expand') in order to perform the highlighting after this expansion. 5k). 2 De ning new commands You can de ne your own styles of overprinting or underlining by using the \markoverwith command in the de nition of your new Enhanced Underlining with ulem and soul Packages. These packages build on top of LaTeX‘s underlining to provide: Better spacing around descenders; Consistent line thickness; The ulem package. But since my problem is simpler than those (even related with spacing) I guess that it could have a simpler solution. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. The problem is that Soul crashes constantly, bringing compilation to a screaming halt. 1 and 2. Follow answered Nov Location: CTAN Packages soul soul – Hyphenation for letterspacing, underlining, and more The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. e. When I use the soul package combined with the cite package to highlight some text that contains tilde and citation (e. - latex/soul. I could use \'e instead of é (\hl{\'e}) but it would be quite long to substitute all the accents just in case I will have to highlight them later (and there are several accents in French : é, è, ù, à, ). 2 in its documentation, § 24 Material that needs I get a &quot;Package soul Error: Reconstruction failed&quot; message when using an acronym for the first time in the \\hl environment, where it should appear in its extended form. This links look useful: Insert symbols inside verbatim mode LaTeX; Putting math inside a verbatim environment without altering the formatting; If you just wanted graph. 1. Since the xcolor package has more powerful features than the color package, in this tutorial we will be using xcolor. In LATEX ulem replaces italics with underlining in text emphasized by \em or \emph { but only if the text is delimited by braces. 4 from 2003) A collection of useful LaTeX style and class files. It works as long as I'm not using the soul package in conjunction with the todonotes package. The problem is related to the use of the soul package for letterspacing. And it does this with little effort. Change the highlight color in LaTeX – Soul package with \hl command. To solve the problem at the package level, the line \countdef\SOUL@minus\z@ in soul. The $. Of course, fast forward 20 years after the soul package is written, LuaLaTeX supports writing underline macros that actually works in all cases. If I try to assign a color to overstrike same thing happens, as in I was using soul to underline text. Sources This is what I intended. Although the package is optimized for LATEX2ε, it also works with Plain TEX and with other flavors The soul package is complex enough to make this a tedious task. For the common case, it behaves in a similar way: the default underline is drawn low enough to avoid crossing any descenders, or you can adjust the underline depth with a macro. 1 Provides hyphenable spacing out (letterspacing), underlining, striking out, etc. The \hl command only highlights if the color package is loaded; otherwise, it falls back to underlining. LaTeX package "soul" for letterspacing, underlining, striking out and other evil things - soul/soul-ori. This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. 3. You can use the \mbox. It works until I tried to underline some CJK text. You can find it by searching at tug. The problem occurs when I try to combine the two to get a thick line extending beyond the text. Note that this changes the interline space, but there's no way that I know for convincing soul and \hl to cover something that exceeds the stated depth for the underline (the background color is realized as underlining with a very thick rule). It has an internal list of macro to officially support (like the \textxx format macros), but fails on macros unknown to it (it can't know how many arguments they have). 113 \expandafter\ifx\csname SOUL@\endcsname\relax In case of plain TEX package soul de nes some macros in a simple manner that will break the de nitions of miniltx. letters and need to underline a few words with three lines. For example, the following increases tracking for small caps only: \usepackage[tracking=smallcaps,expansion=alltext,protrusion=true]{microtype}\SetTracking[spacing={25*,166,}]{encoding=*,shape=sc}{50}. 4 from 2003) This is a follow-up question to Mixing underline and strike-out. Beware that scrreprt doesn't really like titlesec. Using LuaLaTeX and the microtype package you could use \textls instead of \so. " and the citation number. 142 \expandafter\ifx\csname SOUL@\endcsname\relax In case of plain TEX package soul-ori defines some macros in a simple manner that I'm having trouble understanding part of the documentation for the soul package. karlkoeller karlkoeller. However you want to use the <. I use also \emph rather than \textit, because the former is more semantic (we use italic shape for emphasize). One needs a monospaced font that will be used internally by the soul package. Am I supposed to register some command with \soulregister? The package combines the use of soul with the savepos mechanism of current pdf T e X so that the user can create (almost) arbitrary underlining and similar “decorations”, including rules, leaders and even pictures (pgf, pstricks, etc. Is there a way to fix this? \documentclass{article} \usepackage{color, soul} \begin{document} off -- offer \hl{off -- offer} \end{document} Try this: Code (use the package empheq): \documentclass{article} % or some other suitable document class \usepackage{empheq,xcolor} \newcommand*\mybox[1]{% \colorbox I want the underline to be thicker though, so I tried using the soul package, setting the thickness, and then \ul{Some text} This gives me the desired underline thickness. The soul-ori package Melchior FRANZ November 17, 2003 Abstract This article describes the soul-oripackage1, which provides h y p h e n - a t a b l e l e t t e r s p a c i n g ( s p a c i n g o u t ) , underlining and some derivatives such as overstriking and highlighting. \documentclass{article} \usepackage{soul} \usepackage{xcolor} \DeclareRobustCommand{\hlgreen}[1]{{\sethlcolor{green}\hl{#1}}} \begin{document} This is a To use \ref within a highlighted text, wrap it in an additional layer of {} and \cite commands can be hidden in an \mbox (for non-numerical reference styles this might lead to problems with linebreaks): \documentclass[10pt,journal,compsoc]{IEEEtran} \usepackage{soul} \usepackage{xcolor} \usepackage{cite} \sethlcolor{yellow} \begin{document} \section{section xesoul – Use the soul package with X e L a T e X This package allows the use of the soul package (hyphenation within letterspacing, unlderlining and others) with X e L a T e X . Share. The soul package (\usepackage{soul}) provides \hl command for highlighting text. You can only use pure color names with the macro \sethlcolor, but not the ! notation known from the xcolor package. If you are willing to use LuaLaTeX you can use my lua-ul package to avoid having to use environ and friends alltogether and define a "regular" environment instead. ) \usepackage{soul} Then use the following command to highlight text: \hl{text to be highlighted} You can just define a new command using \newcommand\macroname[<arg count>]{<replacement>} (arguments are used by #<num>, up to 9 arguments are supported), to get an a bit more powerful interface you can load the xparse package and use \NewDocumentCommand. 4 from 2003) and the soulutf8 which added some soul package for latex and plain. The ulem package does not require additional packages to be included. 126k 16 16 gold badges 269 269 silver badges \documentclass[a4paper,twocolumn]{article} \usepackage{tikz} \usetikzlibrary{decorations. However, line TeX - LaTeX help chat. \\end{quote} \\end I am trying to use the \hl command to highlight a subsection and subsubsection title. in the manual describes some problems and possible Using the soul package, there is a way to add more top and bottom margin, redefining the correct leaders, like with \makeatletter\def\SOUL@hlpreamble{\setul{}{3. After researching, I have used the soul and colour packages. Consider the following MWE \documentclass{book} \usepackage{soul} \usepackage{hyperref} \newtheorem{theorem}{Theorem}[section] \begin{document} \begin{theorem}[\hl This links look useful: Insert symbols inside verbatim mode LaTeX; Putting math inside a verbatim environment without altering the formatting; If you just wanted graph. \documentclass{article} \usepackage{soul} \usepackage{pdfcomment Don't use soul, but soulpos package (which is based internally upon soulutf8, which is based upon soul, but soulpos uses other method for the highlight). 1 post • Page 1 of 1. 3 Loading packages Package soul uses \documentclass to detect LATEX. $ Similar to what was suggested in this answer, and also in this one, the highlighting of Cyrillic font can be achieved by adding the following lines after \usepackage{soulutf8} or \usepackage{soul}: \makeatletter \font\SOUL@tt={LiberationMono} \setbox\z@\hbox{\SOUL@tt-} \SOUL@ttwidth\wd\z@ \makeatother or like this: For the sake of completeness, the accepted answer to an even older, similar question on Stack Overflow mentions the package todonotes, which offers "MS Word-style" commenting, and more, for those reviewers who are comfortable enough to edit the actual LaTeX code. \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{color} \usepackage{soul} %\soulregister{\ref}{1} \begin I am writing an article in LaTeX 2e. Like soul, the ulem package gives you ways to highlight text with underlines (including double and wavy underlines) and strikeouts. Here is my MWE: I am quoting passages from ms. soulutf8's highlight fails with accents in moving argument (section) 4. more stack exchange communities company blog. Package soul saves the interword space settings of the font in the skip register \SOUL@spaceskip in \SOUL@start. and the following output containing a small black box:. ). ) there. Add the soul soul. Later \spaceskip is used in \SOUL@uleveryspace for setting the space: 在 LaTeX 文档中用多种颜色进行高亮标注,使用 soul 包来解决,代替手动标注 本文主要介绍 高亮 的用法 话不多说,上代码 \usepackage{soul} % 导入 soul 包 \usepackage{color, xcolor} % 颜色包,最好两个都导 导入包以后,可以通过 \hl{要高亮的文字} 进行高亮标注,使用 \se The soul-ori package Melchior FRANZ November 17, 2003 Abstract This article describes the soul-oripackage1, which provides h y p h e n - a t a b l e l e t t e r s p a c i n g ( s p a c i n g o u t ) , underlining and some derivatives such as overstriking and highlighting. \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{color} \usepackage{soul} %\soulregister{\ref}{1} \begin The ulem package. 1 plain TEX First we check, whether package soul-ori is already loaded. org. The problem I have with soul is that it does not The soul package provides ve commands that are aimed at emphasizing text parts. With soul 2023-02-18 v3. (It breaks for 5 char as the language sets hyphenmin to (2,3) and so with 5 chars hyphenation is tried. The problem is an incompatibility of packages soul and ragged2e about the handling of \spaceskip. :-)) What I really would like is, instead of setting the color in the preamble which would force me to define one command per color, to define a command for \hl in which the color is an option, namely something like inlinecolorbox{<color>}{<text with math>} As for creating a robust command, that's even more beyond me . You import the soul package in your preamble and highlight text using the \hl command. cls, etc. I'd like to use the \hl command from the soul package in a French text. The microtype package lets you add tracking selectively. Return to “Text Formatting” Similar to what was suggested in this answer, and also in this one, the highlighting of Cyrillic font can be achieved by adding the following lines after \usepackage{soulutf8} or \usepackage{soul}: \makeatletter \font\SOUL@tt={LiberationMono} \setbox\z@\hbox{\SOUL@tt-} \SOUL@ttwidth\wd\z@ \makeatother or like this: You could do it with the fantastic answer here Cool Text Highlighting in LaTeX. When I have \def \mytest {测试test very long text blah blah blah } \ul\mytest in the document, it complains: Package soul Error: Reconstruction failed. I have tried wrapping the commands in a \mbox or between parenthesis but it doesn't seem to work. An \mbox also lets soul see the contents as one item. Skip to main content. The example \DocumentMetadata { lang=en-US, pdfversion=2. Old answer. In the preamble of the ul driver, \spaceskip is set to \SOUL@spaceskip. The Greek letters need some more work for soul due to the utf8 encoding -- there is soulutf8 as an extension of soul for this (and other non latin characters). The package also offers double and wavy underlining, and striking out (line through words) and crossing out (/// over words). Of the more common ones, using \index or \cite in the argument aborts compilation, while using \mbox or math mode breaks the letterspacing functionality (examples below). exe+. Each of the commands takes one argument that can either be the text itself or the name of a macro that This version is a merge of the original package soul (version 2. 5 which contains some small corrections compared to the version 2. \underline{Some text with underlining. \documentclass[a4paper,12pt]{article} \usepackage[a-1b]{pdfx} % comment this out \ but I get "Package soul error: Reconstruction failed" and a black square after the text "some text". Package Conflict due to new Command I have tried the example in this post to censor some parts of my text. Part of the article describes the Sieve of Eratosthenes, and I want to show examples of how multiples of a prime are removed from the sieve by showing them in a strikethrough font. dtx at main · ho-tex/soul It turns out that soul doesn't like \@mkboth at all. tex This links look useful: Insert symbols inside verbatim mode LaTeX; Putting math inside a verbatim environment without altering the formatting; If you just wanted graph. By the way, the reason \hl had Here is a minimal example showing the problem. otf]” %\makeatletter\font\SOUL@tt=”Consolas” \setbox\z@\hbox{\SOUL@tt-} \SOUL@ttwidth\wd\z@ \makeatother. But, \cite, \ref are not compatible with \hl and must be placed within an \mbox in order for \hl to work properly. Community Bot. Initial doc: \\documentclass{ The soul analyzes the macro arguments of \hl and the related soul macros. dtx would need to be replaced by (for instance) Edit. \documentclass[book] \usepackage{amsmath,amsfonts,amssymb} \usepackage{soul} \begin{document} \begin{equation} \st{$ \gamma $} = \frac{\gamma}{2\pi} = 42. If you want to change the color when using the soul package you can use the command \setstcolor: \documentclass{article} \usepackage{soul,xcolor} \begin{document} \setstcolor{red} \st{Some overstruck text} \end{document} Here is a minimal example showing the problem. If you installed it globally, you will now need to run mktexlsr (or equivalently texhash) via sudo. The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. , using the TEX hyphenation algorithm to find the proper hyphens automatically. The class I am using for my thesis already has it loaded, and I saw this somewhere, so just in case. I couldn't get it to behave nicely also highlighting references in my text until I found a hacky solution on here: \usepackage{soul} Download the contents of this package in one zip archive (24. 2. 4 from 2003) \documentclass{beamer} \usepackage{soul,color} \begin{document} \begin{frame} \hl{Hello World} \end{frame} \end{document} I process this with pdflatex and I do not see the expected highlight. These packages build on top of LaTeX‘s underlining to provide: Better spacing around descenders; Consistent line thickness; To load this package in plain TEX, use ‘\input ulem. The problem occurs using underlined text \ul{} i think that if you can separate the dot from the backslash in the input in such a way that latex still recognizes that the last period is punctuation, you'll get Using LuaLaTeX and the microtype package you could use \textls instead of \so. For example, the soul package allows you to change the color and thickness of the strikethrough line. This is what I tried: \hl{\mbox{\subsection{Section1}}} \hl{{\subsection{Section1}}} # soul soul package for latex and plain Version: 2023-06-14 v3. , using the TeX hyphenation algorithm to find the proper hyphens automatically. exe I would suggest using \begin{verbatim} graph. I am publishing my 3rd book with LaTeX. 141 \ifx\documentclass\@undefined 2. dtx at main · ho-tex/soul Similar problems with soul package can be found here and here. xesoul – Use the soul package with X e L a T e X. auvajs Posts: 22 You could use the soul package: \documentclass{article} \usepackage{soul,xcolor} \begin{document} \setstcolor{red} \st{Text} \end{document} Or you could use the ulem package and define your own command: Highlighting text in LaTeX - changing hl colors too Utilize the "soul" package. sty at master · ankurdave/latex I'd like to use the \hl command from the soul package in a French text. $ So I am writing an assignment in Latex. – Bobyandbob. exe \end{verbatim} or \verb+graph. However, I am having difficulties changing the underline color in consecutive sentences within an italic text. Although the package is optimized for LATEX2ε, it also works with Plain TEX and with other flavors Is it possible to customize the height of the highlighting with the soul package? \documentclass{article} \usepackage{soul} \usepackage{xcolor} \begin{document} \hl{game} \end{document} I need help to figure out how overstriking work into equation on Latex. The second answer in that thread is a working example. \documentclass[a4paper,10pt]{book} \usepackage[letterspace=200]{microtype} \usepackage{polyglossia} There seem to be known issues regarding these packages: Interaction between xcolor, ulem, and no-break spaces, soul: broken highlighting with xcolor when using \selectcolormodel, acro acronym not recognized inside the soul package's strikeout command. > expression which can be created with $ \langle \rangle $. 1 plain TEX First we check, whether package soul is already loaded. As soon as I add this transparency value to the color: \begingroup \sethlcolor{red!30}% \hl{some text here}% \endgroup It only colors the white spaces between the words. It tries to force text to appear on a single line which ends up messing up the beauty of text by forcing it to stretch to the margins. Haven't used it myself, but it looks pretty solid. Just remove random steps, in line 16, green, in line 97 and change \defhighlighter{yellow}{. To do that, we add the following line to the preamble: The soul package provides the \sethlcolor{colorname} command to change the LaTeX package "soul" for letterspacing, underlining, striking out and other evil things - drehscheibe/soul The soul package Heiko Oberdiek∗ 2023-06-14 v3. But for more control over the appearance and behavior of underlines, we can utilize the ulem and soul packages. The default highlight color is yellow, but you can change it by defining custom colors. There was a long hiatus between the second book and the third, but evidently something has changed that has broken my header format. Can anyone This package allows the use of the soul package (hyphenation within letterspacing, unlderlining and others) with XLaTX. Do you know whether it's AFAIK soul reads the content of its macros token (or brace group) by token and so splits the \phantom and its argument apart. letty Posts: 9 Joined: Fri Jan 01, 2010 3:33 pm. 54cm]{geometry} % for margins on a A4paper \ Whenever there is a need to install a TeX package available on CTAN, run the following to determine whether it is included in an Arch texlive-package: $ tlmgr info ctan_package_name | grep collection This will potentially list the name of a TeX Live collection which corresponds to an Arch texlive-package (also check the texlive group to confirm whether such package exists). The following code is based on the soul documentation, § 22 Nested soul commands: \documentclass{article} \usepackage{xcolor} \usepackage{soulutf8} \begin{document} \newbox\mybox \sbox\mybox{ \ul{AAAA} } \hl{ AAAA {\usebox\mybox} AAAA} \end{document} You could use the soul package. Here is a MWE: \documentclass[11pt]{book} \usepackage{xcolor} \usepackage{soul} The soul package Melchior FRANZ November 17, 2003 Abstract This article describes the soul package1, which provides h y p h e n - a t a b l e l e t t e r s p a c i n g ( s p a c i n g o u t ) , underlining and some derivatives such as overstriking and highlighting. 420. The package also provides a mechanism that can be used to implement similar tasks, that have to treat text syllable by After some searching, I settled on using the Soul package for highlighting bits of text that are questionable, need to be reviewed, lack a citation, etc. Although the package is optimized for LATEX2ε, it also works with Plain TEX and with other flavors The soul package Heiko Oberdiek∗ 2023-06-14 v3. The log files complain of something like: \font\SOUL@tt=”[FreeMono. \hl{A statement \emph{et al. But even that will not work on, for example, ending a penultimate word on an italic f. The problem is \documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp I have the following code in soul to allow underlines for letters with descenders. sty plus perhaps . \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,greek]{babel} \usepackage{soulutf8} \usepackage{kerkis} TeX - LaTeX help chat. Browse files; Back to package list The soul package (\usepackage{soul}) provides \hl command for highlighting text. However, I fail setting the color transparency, which is normally possible by writing !trans_value after the color. , the \allcaps and \smallcaps commands will not letterspace the text). However, using xcolor there is a trick to support the colour definition: \colorlet{foo}{x!y!z!} defines and transforms the specification into a colour named foo (this will overwrite an existing definition of the colour named foo, however. {\ulcolor}[2][Red]{\setulcolor{#1}\ul{#2}} %opening \title{Underlining in several colours} but I get "Package soul error: Reconstruction failed" and a black square after the text "some text". 129 \ifx\documentclass\@undefined 2. I put tilde here because I don't want LaTeX to interpret the dot as the end of the sentence. I am using \sout from the ulem package together with beamer to strike through some text: \documentclass[mathserif]{beamer} \usepackage{ulem} \begin{document} \begin{frame} Next meetings: \begin Try enclose \cite{hong_groups_2004} in an extra pair of curly brackets ({}), without those, soul may do funny things with the \cite-command: \documentclass{article} \usepackage{color,soul} \begin{document} \hl{A statement {\cite{hong_groups_2004}}} \end{document} Section 2. That's it. soul package command \hl can not work with escaped space. Tags. Add some more to the depth (and the thickness), also setting \lineskip to zero. These packages build on top of LaTeX‘s underlining to provide: Better spacing around descenders; Consistent line thickness; The \sethlcolor macro does not understand the colour specifiction of x!y!z etc, it can work with named colors being defined with \definecolor only. In some cases, you can overcome by interrupting the normal kerning: \hl{\emph{irre\mbox{}ducible}} by sticking an \mbox{} in the middle of a word. 2 De ning new commands You can de ne your own styles of overprinting or underlining by using the \markoverwith command in the de nition of your new I want to underline consecutive sentences each with a different color within an italic text. \hl{\mbox{\cite{roohani2019numerical}} At the same time if you want to highlight the reference Strikethrough in LaTeX with ulem package. Both packages provide a common set of commands for color manipulation, but xcolor is more flexible and supports a larger number of color models, so is they are incompatible. Wrapping the whole thing in braces will make soul take it as one unit. LaTeX specific issues not fitting into one of the other forums of this category. ( lua-ul package uses some Lua hooks/callbacks. Color highlighting with soul package does not work well with ligatures. \begingroup \usepackage{<package>} \global\let\wantedmacro\wantedmacro \global\expandafter\let\csname special name\expandafter\endcsname\csname special name\endcsname % \endgroup Also some internal LaTeX macro which are defined for every loaded package must be handled, etc. \documentclass[a8paper, landscape]{scrartcl} I am using xelatex, polyglossia and the document is in UTF-8 encoding. \usepackage{xcolor} \usepackage{xparse} \usepackage{soul} \makeatletter \ExplSyntaxOn \cs_new:Npn \ The \underline macro built into LaTeX is pretty much not useable per Why does underlined text not get wrapped once it hits the end of a line ? I have been attempting to use the soul package to underline omitting the descenders but have run into numerous issues, and now considering alternatives. Alternatively use lua-ul package, which uses some special abilities of LuaLaTeX to implement the functionality. 58 \text{ Mhz/T} \end{equation} \end{document} for some reason, you couldn't load the cancel package but The soul package Heiko Oberdiek∗ 2023-06-14 v3. Using the below code, you can change the highlight color using soul and xcolor package. I'm using soul's \\hl to set background for the paragraph parts and ulem's \\uline to underline text. However, you can use the \colorlet macro to define a This package allows the use of the soul package (hyphenation within letterspacing, unlderlining and others) with XLaTX. It also provides a The problem is that Soul crashes constantly, bringing compilation to a screaming halt. Stack Exchange Network. Basically, the ulem package is mostly used to add underline to text. 8. 1 Abstract This version is a merge of the original package soul (version 2. ~\cite{xyz}}, I get unwanted extra space between the word "Ref. Jobs. Improve this answer. }} works since \emph is registered LaTeX package "soul" for letterspacing, underlining, striking out and other evil things - soul/soul. Commented Jan 20, 2018 at 23:31 @Bobyandbob Why comment and not answer? Anyway, I don't have soul package – qnferthm. I would like to use soul to create an (underline) + (strike-through) command \textulst that would combine \textul with \textst and still allow line-breaks within. Learn more Top users Synonyms 83 questions \documentclass{ieeeaccess} \usepackage[noadjust]{cite} \usepackage{amsmath,amssymb,amsfonts} %\usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp The soul-ori package Melchior FRANZ November 17, 2003 Abstract This article describes the soul-oripackage1, which provides h y p h e n - a t a b l e l e t t e r s p a c i n g ( s p a c i n g o u t ) , underlining and some derivatives such as overstriking and highlighting. Provides hyphenable spacing out (letterspacing), underlining, striking out, etc. Hence, am looking for a comparison of the various options for underlining text: I'm using TeXstudio on Linux, and there is an option under the LaTeX/Font Styles menu to underline the selected text. 3 Loading packages Package soul-ori uses \documentclass to detect LATEX. Sign up or log in to customize your list. It also LaTeX package "soul" for letterspacing, underlining, striking out and other evil things - ho-tex/soul Here are the basic steps to follow to enable text highlighting: Download the LaTeX package named "soul". If you put \usepackage{xcolor} and \usepackage{soul} in your preamble, then you can simply use \hl{} to highlight a piece of text. The source of the problem is that both xcolor and soul use \dimen@ as a temporary register. bold, italic, enumerations, ) 3 posts • Page 1 of 1. It also provides a One may want to highlight some text, or strike it. Do you know whether it's soul package with Latex delimiter. I noticed that adding pdfx package to my document stopped the soul package from highlighting the text in yellow. \textso interacts poorly with some other macros. It's really not possible to use other commands, apart font switching and accent making ones; a list of preregistered commands of that kind is already included in soul, but others can be registered \soulregister{\myfontswitch}{1} I have used \\documentclass{article} \\usepackage{soul} \\usepackage[normalem]{ulem} \\begin{document} \\hl{\\mbox{\\sout{This is my text which I want to highlight However, with the uline command from the ulem package, it works flawlessly. g. Code \documentclass{article} \usepackage{xcolor} \usepackage{soul} \begin{document} Nullam accumsan, dui vitae vehicula aliquet, libero ligula congue turpis, rutrum molestie ante nisl ac In text mode, the \underline command will enclose its argument in a horizontal box, which doesn't allow linebreaks. As daleif posted, \usepackage{soulutf8} solves the problem. In text mode, the \underline command will enclose its argument in a horizontal box, which doesn't allow linebreaks. I decided to change to soul's \ul instead of \underline in one of my documents because I don't want the underlined text to run into the margin (see this Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our products \documentclass{beamer} \usepackage{soul,color} \begin{document} \begin{frame} \hl{Hello World} \end{frame} \end{document} I process this with pdflatex and I do not see the expected highlight. Location: CTAN Packages soul soul – Hyphenation for letterspacing, underlining, and more The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. The following defines a macro that takes a mandatory argument, Soul package does not work with XeLatex with Chinese text Hot Network Questions Why does this simple and small Java code runs 30x faster in all Graal JVMs but not on any Oracle JVMs? Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our products If it is a LaTeX package, create a directory in <base dir>/tex/latex/<package name> for it and extract the files (. Package soul Error: Reconstruction I am wanting to include a link within some highlighted text. Users. This package allows the use of the soul package (hyphenation within letterspacing, unlderlining and others) with X e L a T e X. If you don't need headers, the solution is to locally neutralize the command. Unanswered. But these command doesn’t work inside the equation environment and LaTeX math mode, in this case, you have to use the cancel package. Return to “Text Formatting” The problem is due to the bookmarks. The highlighting is currently being performed by the soul package but the following example shows it returns a bunch of warnings and fails to render the link: \documentclass{book} % Package used for highlighting \usepackage{soul} % Link setup \usepackage[ps2pdf]{hyperref} \hypersetup{breaklinks=true, Enhanced Underlining with ulem and soul Packages. For convenience, I set Alt + U as a shortcut so that I can quickly underline things. Here is my piece of code \\documentclass{article} \\usepackage{color,soul} \\begin{document} \\begin{quote} \\tt\\ \\ul{{\\color{red}text}}. I couldn't get it to behave nicely also highlighting references in my text until I found a hacky solution on here: \usepackage{soul} Yes, you can customize the appearance of Latex Strikethrough by using different packages or commands in your Latex document. This package, written by Dr. GBase Posts: 1 Joined: Thu Nov 28, 2013 1:21 pm. soul package for latex and plain. Obviously Otherwise, with the native bibliography handling of LaTeX, add the following lines to the preamble: \newcommand\highlightReference[1]{% \expandafter\newcommand\csname highlightReference-#1\endcsname{}% } \let\oldbibitem\bibitem \def\bibitem#1 #2\par{% \expandafter\ifx\csname highlightReference-#1\endcsname\relax \oldbibitem{#1}#2\par \else 2. And also that underlining (especially so tight) is not typographycally very sound. Here I am suggesting the use of freemono but one can use any other font that contains the script you intend to use in a document The soul package is incompatible with the tagging code. " Top. \hl{Ref. As part of this assignment, I have to highlight various pieces of writing in different colours according to theme. 0, pdfstandard=ua-2, testphase={phase-III,math,title It turns out that soul doesn't like \@mkboth at all. The highlighting is currently being performed by the soul package but the following example shows it returns a bunch of warnings and fails to render the link: \documentclass{book} % Package used for highlighting \usepackage{soul} % Link setup \usepackage[ps2pdf]{hyperref} \hypersetup{breaklinks=true, 2. A minimal non-working example is A minimal non-working example is \documentclass{article} \usepackage{xcolor, soul} \colorlet{mycolor}{red!30} \sethlcolor{mycolor} \begin{document} \hl{can\ we\ highlight} \end{document} One can use commands inside \ul as long as they expand completely to characters; so \ul{Some text \thecount} works. 5ex}\let\SOUL@stcolor\SOUL@hlcolor\SOUL@stpreamble}\makeatother, based on this answer. tex With the microtype package and pdfTeX, you just need to enclose the text which you want to emphasize in a \textls command. What can I The picture below says it all. Commented Enhanced Underlining with ulem and soul Packages. Teams. And soul uses it at a place where it can't be sure that other commands temper around with this dimen. Consider the following MWE \documentclass{book} \usepackage{soul} \usepackage{hyperref} \newtheorem{theorem}{Theorem}[section] \begin{document} \begin{theorem}[\hl Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our products The soul package is incompatible with the tagging code. Unlike soul underlines, which are built by repeating small elements, here each chunk of text to be underlined is a single element. Are \( and \) preferable to dollar signs for math mode? Related. , using the TEX hyphenation algorithm to find the The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. Note that user-level documentation of the color package is contained in The LaTeX standard graphics bundle. Although the package is optimized for LATEX2ε, it also works with Plain TEX and with other flavors See the soul package documentation (section 4 Underlining, p 11 onward) for more information regarding settings and underlining control. So far, I have tried the soul package and can change the underline properties. Is Latex Strikethrough possible in other document formats? Latex Strikethrough is a feature specific to the Latex typesetting system, Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our products This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. Well, almost. The package also provides a mechanism that can be used to implement similar tasks, that have to treat text syllable by syllable. Alternatively if you just want to change the height of the box you could use How to customize the highlight height with soul - TeX - LaTeX Stack Exchange or math mode - Customizing highlighting from soul - TeX - LaTeX Stack Exchange. Q&A for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Log in; Sign up; Home. There are also similar commands for different accents. This is shown in two Are there any similar packages (or color ulem) to the ulem package, with color, underline, sout, xout, dash underline, dot underline with color as parameter? I found this Q&A about changing the color of special underlines with ulem months ago, and I like that solution, but I'd like: color as parameter It turns out that soul doesn't like \@mkboth at all. However, this package provides \sout{<text>} and \xout{<text>} command to strike out text. bold, italic, enumerations, ) 1 post • Page 1 of 1. Follow edited Apr 13, 2017 at 12:34. Whenever there is a need to install a TeX package available on CTAN, run the following to determine whether it is included in an Arch texlive-package: $ tlmgr info ctan_package_name | grep collection This will potentially list the name of a TeX Live collection which corresponds to an Arch texlive-package (also check the texlive group to confirm whether such package exists). Use the \ul command of the soul package instead. Questions with this tag are about the uses, and also problems with using, the `soul` package for letterspacing, underlining, overstriking and highlighting, perhaps also using colour. 5} from line 13 to \defhighlighter{yellow}{0}. Download the contents of this package in one zip archive (24. \documentclass[12pt]{article} \usepackage{soul} \begin{document} A sentence that is just included to fill the line. If I try to assign a color to overstrike same thing happens, as in Hi everyone I am working on MDPI submission using their template avaliable on overleaf and their site here I am highlighting changes using the soul package and the \hl{} but everytime I do this on the abstract Overleaf seems to freeze on compiling and I get no answear. very disappointing that no better solutions have been developed. Der Grund hierfür ist, dass ich der Überzeugung bin dass diese möglichst sparsam eingesetzt werden sollte und wenn überhaupt nur in der Form der It also provides a mechanism that can be used to implement similar tasks, that have to treat text syllable by syllable. Post by letty » Sat May 01, 2010 1:49 pm . If mktexlsr is not in the path that sudo searches, you will need I want to color my text and followed this sample code. Options. You can redefine the internal soul command, or you can use To load this package in plain TEX, use ‘\input ulem. – 2. $ soulutf8, despite the recent updates and the Unicode compatibility, still suffers from some limitations of the old soul package. 5. pathmorphing} % \usepackage{soul} \usepackage{soulpos} \begin{document The soul package Heiko Oberdiek∗ 2023-06-14 v3. This can be done with either the soul package, or with the ulem package using a trick, although it does not work that well. As a real hacky workaround that could get you out of a bind, you could try this if the problem arises just once or twice in the In Cool Text Highlighting in LaTeX, Gumbo offered, in a comment to Caramdir's answer, \hlc, a modification of soul's \hl to allow choosing the highlighting color on the fly. \underline{text} command cannot underline more than one line of text or a block of text. 1. 142 \expandafter\ifx\csname SOUL@\endcsname\relax In case of plain TEX package soul-ori defines some macros in a simple manner that The soulutf8 package loads the soul package and adds utf8 support. This version is a merge of the original soul package from Melchior Franz and the soulutf8 package from Heiko Oberdiek and supports also UTF8. I also tried \CJKunderline. , using the T e X hyphenation algorithm to find the proper hyphens automatically. If you look carefully, soul cuts some italic characters, and adds a little blanc after the italic text. I decided to change to soul's \ul instead of \underline in one of my documents because I don't want the underlined text to run into the margin (see this Too long for a comment. This is shown in two examples. (Side note, I think the "color" package should be loaded for this to work as well. soul-package documentation lists some stuff that won't work under section 2. tex 2. }} Do you know?} It's not impossible to extend the \st macro to handle a few more special cases, but being completely general is very difficult. . Documentation files go in <base dir>/doc/latex/<package name>. Color highlighting with the soul package prevents a correct rendering of the ff ligature. This package provides hyphenatable letterspacing, underlining, overstriking \makeatletter \sbox0{\ttfamily\global\let\SOUL@tt\ttfamily} \makeatother to circumvent soul's choice of a font not containing the necessary diacritical combinations brings me a bit closer to a solution, the ā is preserved, but I get a ! Package soul Error: Reconstruction failed. 142 \expandafter\ifx\csname SOUL@\endcsname\relax In case of plain TEX package soul-ori defines some macros in a simple manner that The answer that worked for me was given in the link that Zuhaib Ahmed gave (namely adding \soulregister\cite7 before \begin{document}): \documentclass[draft]{agujournal2019} \usepackage{soul} \usepackage[inline]{trackchanges} \soulregister\cite7 \begin{document} Remove this reference \remove{ This is a sentence with a I am not sure why you'd want to increase tracking for all typeface styles. com suggest the following approach to highlight a paragraph: Add the following to your preamble: \\usepackage{color} \\newcommand{\\hilight}\[1\]{\\colorbox{yellow}{#1}} \underline{text} permits us to underline just a few strings of text in a single line or at maximum, we can underline entire text on a single line. 2. You could use the command \'o for ó. Then there are also less restrictions about possible arguments: \documentclass{article} \usepackage{xcolor,luacolor,lua-ul} \makeatletter \newenvironment{newtext}[1][yellow] {% soul: List of files. Use the soul package, The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. } \makeatletter %% <- make @ usable in command sequences \newcount\SOUL@minus \makeatother %% <- revert @ This reserves a new count register for soul to use instead of the one it is using by default. There is no need to load soul separately. devdaily. If you also need highlighting, underlining or strike through of soul you could instead use the lua-ul package in LuaLaTeX. Information and discussion about LaTeX's general text formatting features (e. I use the soul package to highlight words (using soulutf8 makes no difference). When I attempt to re-LaT Skip to main content. 112 \ifx\documentclass\@undefined 2. Soul Paket Innerhalb meiner Kurse bezeihungsweise meiner Seminare zum Thema L A T E X wird im Allgemeinen nur wenig auf aktive Textauszeichnung eingegangen. 6 posts • Page 1 of 1. Share Improve this answer I'm using TeXstudio on Linux, and there is an option under the LaTeX/Font Styles menu to underline the selected text. auvajs Posts: 22 You could use the soul package: \documentclass{article} \usepackage{soul,xcolor} \begin{document} \setstcolor{red} \st{Text} \end{document} Or you could use the ulem package and define your own command: QUESTION: Is there a simple, alternative approach to the above code that does not make use of the soul package, whereby I can underline in color, as well as specify the depth and thickness of the underlining, and able to be compiled with pdflatex? I want to color my text and followed this sample code. However, it does not work whenever the part to highlight contains French accents (e. It can be included in the document as follows: \usepackage{ulem} 2. 54cm]{geometry} % for margins on a A4paper \ The soul-ori package Melchior FRANZ November 17, 2003 Abstract This article describes the soul-oripackage1, which provides h y p h e n - a t a b l e l e t t e r s p a c i n g ( s p a c i n g o u t ) , underlining and some derivatives such as overstriking and highlighting. This article explains how to use color in your LaTeX document via the color or xcolor packages. This time, I'm specifically interested in an implementation using soul (that doesn't require multiple compilations to stabilize). , using the TEX hyphenation algorithm Jun 14, 2023 # soul soul package for latex and plain Version: 2023-06-14 v3. \hl{\mbox{\cite{roohani2019numerical}} At the same time if you want to highlight the reference It seems that \hl command in the soul package can not work with escaped space. And like so much of the LaTeX ecosystem, it's ancient abandonware, last updated in 2003. Instead of the ac This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. The problem is what I cant underline text for text with background. Use lualatex and the lua-ul package. But it does not auto-wrap for this long text. To temporarily work around the problem, you can use the 'nols' document class option: \documentclass[nols]{tufte-book}% or tufte-handout The side effect of this is that you're on your own for letterspacing (i. soulutf8 strips characters from compound words. Unlike Alternative package: soul. Although the package is optimized for LATEX2ε, it also works with Plain TEX and with other flavors Location: CTAN Packages soul soul – Hyphenation for letterspacing, underlining, and more The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. The package works with both LaTeX specific issues not fitting into one of the other forums of this category. 4 from 2003) I want to highlight some text using package soul. Does a command exist for doing so? I've consulted Melchior Franz's soul package documentation from 2003 and Donald Arseneau's ulem package documentation from 2011. This is the most straightforward way to highlight text in LaTeX. I am wanting to include a link within some highlighted text. Companies. You can adjust the amount of letterspacing (Sperrsatz) globally by adding letterspace=125 to the package options or, alternatively, locally by providing it as an optional argument to the \textls command (in multiples of 1/1000 em). Now I have \documentclass[a4paper,11pt]{article} \usepackage[a4paper,includeheadfoot,margin=2. How do I create a strikethrough font in LaTeX 2e? With the soul package this is: \usepackage{soul} \st{Hello World} The ulem package seems LaTeX specific issues not fitting into one of the other forums of this category. Version: 2023-06-14 v3. } The problem is an incompatibility of packages soul and ragged2e about the handling of \spaceskip. Package soul Error: Reconstruction Location: CTAN Packages soul soul – Hyphenation for letterspacing, underlining, and more The package provides hyphenable spacing out (letterspacing), underlining, striking out, etc. The problem has been resolved. The main tool to work with colors in LaTeX is the xcolor package. Make \hl to just return its argument when making the bookmark. 0, pdfstandard=ua-2, testphase={phase-III,math,title It seems this can be difficult to handle by packages and I'm not sure why. Nevertheless, I can't find how to add left and right margin to it. This package includes 4 files with a total size of 44752 bytes. soul is fragile anyway and the portuguese language uses with xelatex special code to split hyphens and this breaks. Kurze Vorstellung des Latex Paketes Soul. ) Anyway, for soul , it actually has a mechanism to support what you want (but line break within the command is then not supported) If you don't need particular formatting apart from coloring, you can load the soul package (once loaded by changes), and define, for example: Cool Text Highlighting in LaTeX. TeX - LaTeX Meta your communities . qaum zusnh nzoc ccvvkzr oqq xmmnbt acitf uinean ypfou orots