New answers tagged

3

One can use lmodern, but redefine the functions \', \H, and \", though that may have some danger associated with it. As wipet points out, this approach breaks hyphenation, which in itself is enough to recommend against its use. \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,stackengine,scalerel,graphicx} ...


8

You can \usepackage{lmodern} to get a version somewhat in between. In particular, the ring on Å is a circle (though somewhat thicker than the original). The accents are less slanted as well, especially for Ő and Ű. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} A\'A\AA ...


2

I create a macro, \dblacc{} for adding a double accent to characters. It works even for accenting an ogonek. \documentclass{article} \usepackage{stackengine,tipx,lmodern} \usepackage[T1]{fontenc} \newcommand\dblgr{\setbox0=\hbox{x}% \setbox2=\hbox{\raisebox{-\ht0}{\`{}\kern-2.7pt\`{}}}\dp2=0pt\box2} ...


1

Hungarian version based on previous answer: \lstset{ literate={á}{{\'a}}1 {é}{{\'e}}1 {í}{{{\'\i}}}1 {ó}{{\'o}}1 {ö}{{\"o}}1 {ő}{{\H o}}1 {ú}{{\'u}}1 {Ú}{{\'U}}1 {ü}{{\"u}}1 {ű}{{\H u}}1 {Ü}{{\"U}}1 }


2

The error seems to be similar to the one described in Biber 2.4, microtype, and special characters The workaround seems to consist in fixing the definition of \ifempty: \begin{filecontents}{\jobname.bib} @Article{ref, author = {Name, \v{a}}, } \end{filecontents} \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...


1

The code in Hendrik Vogt's answer has the line \newcommand*\widebar[1]{% [...code...] } but the definition is “unsafe” for usage in moving arguments, such as captions and sectional titles. So \widebar is to be considered fragile. See What is the difference between Fragile and Robust commands? for more information. Either you keep the definition as is ...


1

I'll echo what the commenters suggest and say that you would be better off writing the accents as you normally would and encoding the document in UTF-8: \documentclass{article} % Tells all the other packages that the document language is Spanish. It also changes hyphenation rules and quotation marks. The choose the mexico or spain option depending on ...


1

With the standard accents: \documentclass{article} \newcommand{\acutedotsym}{% \kern-.2em\'{}\kern-.25em\raisebox{-.15ex}[0pt][0pt]{\.{}}\kern-.05em } \DeclareRobustCommand{\acutedot}[1]{% \leavevmode \vbox{ \offinterlineskip \ialign{% \hfil##\hfil\cr \hidewidth\acutedotsym\hidewidth\cr \noalign{\kern-1ex} #1\cr }% ...


4

Is this what is meant? \documentclass{article} \usepackage{amsmath,stackengine} \newcommand\acutedot[1]{% \stackengine{.5pt}{#1}{\footnotesize\raisebox{-.8pt}{$\scriptscriptstyle\prime$}% \kern-.8pt.\kern-.3pt}{O}{c}{F}{T}{S}} \begin{document} b\acutedot{e}gu \end{document} Here is one with slightly different metrics, but which works across [most] ...


1

It depends on the meaning of what you want to write. This is a matter of pure semantics. You have two options: If the « hat » means « matrix M », then the hat is not part of the name of the matrix. It just says that M is a matrix. In this case, you should use \hat{\mathbf{M}}. However, if you call the matrix « M̂ », that is, the « hat » is actually a part ...



Top 50 recent answers are included