Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
8 votes
Accepted

French spacing in plain tex / optex

You're almost there, but the space should go after the opening guillemet. I add also \unskip or \ignorespaces so as to support the traditional way of typing French. \frlang \fontfam[Times] \...
egreg's user avatar
  • 1.1m
7 votes
Accepted

Extra Spacing After "s.t."

Normally after a lower case letter you get an end of sentence space after . you can use .\@ to get a normal space. \documentclass{article} \begin{document} aaa s.t. bbb bbb bbb bb aaa s.t.\@ bbb ...
David Carlisle's user avatar
6 votes
Accepted

Remove the dot after a specific theorem environment

I'm not sure why you wouldn't want the period in definitions. I see no reason for breaking the uniformity. Anyway, the correct way is to define suitable theorem styles. \documentclass{article} \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

persistent issues with overfull \hbox in bibliography

In 12 pages of bibliography you have just one entry that is less than 1pt over full Overfull \hbox (0.99489pt too wide) in paragraph at lines 71--71 []\T1/cmr/m/n/12 (-20) Garg, Shilpa et al. ^^P ...
David Carlisle's user avatar
5 votes

I switched to using polyglossia for some hebrew text and all of em dashed in my text reverted to three dashes

\newfontfamily doesn't load the \defaultfontfeatures. Note: I changed the Hebrew font to one I have. \documentclass[12pt]{article} \usepackage{polyglossia} \setmainlanguage{english} \...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Automatic raise of punctuating commas inside math mode

\documentclass{article} \usepackage{amsmath,parskip} \newcommand{\CommaPunct}{\mathpunct{\raisebox{0.5ex}{,}}} \mathchardef\commaorig\mathcode`, \mathcode`,="8000 {\catcode`,\active \...
David Carlisle's user avatar
4 votes

I switched to using polyglossia for some hebrew text and all of em dashed in my text reverted to three dashes

Since you mentioned babel, in case you decide to stick to it, here is how to do it: \documentclass[12pt]{article} \usepackage[english, bidi=default]{babel} \babelfont{rm}{EB Garamond} \babelfont[...
Javier Bezos's user avatar
  • 10.3k
4 votes

The horizontal gap/kern before the comma is too large with unicode-math

The spacing is determined by the font used not by the tex macros Latin Modern Math OpenType This is with lualatex, xelatex log is different but identical space \documentclass{article} \usepackage{...
David Carlisle's user avatar
3 votes
Accepted

How to type lambda expressions?

If there are always no spaces before the dot and there are some spaces after the dot, we could use the \ldotp. For example, \documentclass{amsart} \begin{document} \[ \lambda x\ldotp M\to((\lambda x\...
M. Logic's user avatar
  • 4,323
3 votes
Accepted

Remove oxford comma on title page in German apa7

You can patch the \displayauthors command. Since there are two places in that command which define the \prelastauthorsep command, we patch the same command twice. \documentclass[12pt, stu, a4paper, ...
Alan Munn's user avatar
  • 219k
3 votes

What's the correct way of writing a systems of equation in latex?

The question posed in the title of your query doesn't have a proper answer, as there is a multitude of "correct ways" to input a system of equations in LaTeX. Each way may be "best"...
Mico's user avatar
  • 510k
2 votes

Remove the dot after a specific theorem environment

\documentclass[12pt]{article} \usepackage{mathtools,amsthm,amssymb} \newtheorem{theorem}{Theorem} \newtheoremstyle{definitionstyle}% name {0pt}% space above {0pt}% space below {}% body font {...
Sebastiano's user avatar
  • 55.2k
2 votes

What's the correct way of writing a systems of equation in latex?

I would use amsmath's cases environment or mathtools's dcases environment: \documentclass[11pt, a4paper]{article} \usepackage{mathtools} \begin{document} Your original code: \begin{equation} \left\{ ...
cabohah's user avatar
  • 12.3k
2 votes
Accepted

How to remove the Oxford comma in natbib bibliography author list using IEEEtranN?

I suggest you proceed as follows: Find the file IEEEtranN.bst in your TeX distribution. Make a copy of this file and call the copy, say, IEEEtranN-noc.bst, where noc is short for "no Oxford ...
Mico's user avatar
  • 510k
1 vote
Accepted

Hide point after company as author in biblatex

Ulrike Fischer is right, this is intentional behavior in the apa6 style. Regardless, your goal can be achieved with this code: \DeclareDelimFormat[bib]{nameyeardelim}{\addspace} MWE: \documentclass{...
hair-splitter's user avatar
1 vote
Accepted

Proper dash with XeLaTeX / Lucida Calligraphy

The Ligatures=TeX feature is only added by default to fonts declared with \setmainfont, \setsansfont. TeX ligatures aren't enabled with fonts declared with \newfontfamily unless you add them. You can ...
David Carlisle's user avatar
1 vote

How to remove the Oxford comma in natbib bibliography author list using IEEEtranN?

If you can switch to biblatex: \begin{filecontents}{\jobname.bib} @article{c, title={Title}, author={Author, First and Author, Second and Author, Third}, journal={Journal}, year={2024}, } \end{...
egreg's user avatar
  • 1.1m
1 vote

Polyglossia with Russian language set does not render -- and --- and nice quotes

With \newfontfamily you need to enable TeX-Ligatures, if they should be uses, e.g., for -- or --- or also for quotes. Use \newfontfamily\cyrillicfont{Liberation Serif}[Script=Cyrillic,Ligatures=TeX] ...
cabohah's user avatar
  • 12.3k
1 vote
Accepted

Need a dash with a certain thickness and length (and something above it)

The - is actually as tall as a + (which sometimes helps, but not here) you can hide the height with\smash \documentclass[10pt,a4paper]{llncs} \begin{document} $\hat{+} \hat{-} \hat{\smash{-}} \hat{=}...
David Carlisle's user avatar
1 vote
Accepted

Spacing and punctuation problems when customizing the list of figures

IMHO this is the minimum distance (numsep) used together with dynnumwidth. I would do the whole thing differently: \documentclass[ fontsize=12pt,% captions=tableheading,% headings=...
cabohah's user avatar
  • 12.3k
1 vote

Is the advice I find to use \colon for punctuation and : for set notation outdated

The advice you found is about colons in math formulas. In text the colon is input just with :. For the case at hand, Knuth would suggest Joshua~23\thinspace:\thinspace 8, but it's a stylistic ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Lower the period following a display style fraction

I see nothing wrong in the second example (just normal punctuation), but also the third example may be appealing (thin space before the period). I can see no reason for lowering the period, like in ...
egreg's user avatar
  • 1.1m

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