Hot answers tagged

5

Probably this is not the most elegant solution, but you can use \DTMtoday and \DTMcurrenttime instead of \DTMnow and add the options text width=3cm and align=center to your node. In order to change the date format, you can use \DTMsetdatestyle{ddmmyyyy}. If you also want to get rid of the seconds, add the package option showseconds=false to the datetime2 ...


4

You can use the es-notilde option to babel for nowadays the shorthands ~n and ~N are no longer needed, since you can directly type in ñ and Ñ. \documentclass{article} \usepackage[spanish,es-notilde]{babel} \usepackage{polynom} \begin{document} \polylongdiv[style=D]{x^5}{x^3+2x^2+9x+8} \end{document} Alternatively, patch the relevant macro in polynom.sty ...


3

Use \shorthandoff*{~} in a group before the macro: \documentclass{article} \usepackage[spanish]{babel} \usepackage{polynom} \begin{document} {\shorthandoff*{~} \polylongdiv[style=D]{x^5}{x^3+2x^2+9x+8}} \end{document}


2

Here is another solution using Unicode in LuaLaTeX: \documentclass{article} \tracinglostchars=2 \usepackage[nil]{babel} \babelprovide[import,main,onchar=ids fonts]{amharic} \babelprovide[onchar=ids fonts]{english} \usepackage{unicode-math} \defaultfontfeatures{ Scale=MatchLowercase, Ligatures=TeX, Renderer=...


2

I'm not sure, but I'd say there is a bug in amsthm. Try with the following redefinition after loading this package: \makeatletter \def\deferred@thm@head#1{% \if@inlabel \indent \par \fi % eject a section head if one is pending \if@nobreak \adjust@parskip@nobreak \else \addpenalty\@beginparpenalty \addvspace\@topsep \addvspace{-\parskip}%...


1

The following worked for me in LuaLaTeX. \documentclass{article} \tracinglostchars=2 \usepackage{unicode-math} \usepackage[bidi=basic]{babel} \babelprovide[import,main, onchar=ids fonts]{hebrew} \babelprovide[onchar=ids fonts]{english} \defaultfontfeatures{ Scale=MatchLowercase, Ligatures=TeX, Renderer=HarfBuzz } \babelfont{rm} [Ligatures=Common,...


1

Glad you found that helpful. Short answer: add the option alph=alphabetic to babelprovide. Longer answer (which enables compatibility with LuaLaTeX and adds a few bells and whistles): % Recommended with LuaLaTeX in TeX Live 2020 or later, % but also works with XeLaTeX. \documentclass[12pt]{article} \tracinglostchars=2 % Warn if the current font lacks a ...


1

I do not want to steal merit from @Ulrike Fisher. I decided to post this here as it seems to be natural to post workarounds this way. @Ulrike Fisher has implicitly posted two instant solutions in https://github.com/latex3/babel/issues/99 to this issue which appears to be a bug. She did not mention these directly in her comment on my question. Another less ...


1

As @DavidCarlisle has noted in a comment, you must supply a delimiter symbol with \left and \right. I suggest you supply [ and ], respectively. You should also increase the sizes of the ( and ) delimiters in the equations, by supplying the prefixes \biggl and \biggr, respectively. And, as @DavidCarlisle has further pointed out, you should use an align* ...


1

\usepackage[none]{hyphenat} Is preventing hyphenation, that may be useful for some special document formats but for normal text, especially in languages with longish compound words it makes good linebreaking impossible. Just removing fixes the overfull boxes in this case once you fix the udefined command error.


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