TeX - LaTeX Stack Exchange Community Digest

Top new questions this week:

How to Include Mathematical Expressions like \sqrt{8} Inside \qty Command with siunitx?

How to include \sqrt{8} inside \qty{...}{\metre}? My Code: \documentclass{article} \usepackage{siunitx} \begin{document} % works $\sqrt{8}$ % works $\qty{8}{\meter}$ ...

siunitx  
user avatar asked by Marco Moldenhauer Score of 7
user avatar answered by samcarter_is_at_topanswers.xyz Score of 9

Long and protected macros in LaTeX3

I have questions about the following functions in LaTeX3: \token_if_macro_p:N \token_if_long_macro_p:N \token_if_protected_macro_p:N \token_if_protected_long_macro_p:N How do they behave with the ...

expl3 latex3 programming protected-macro long-macro  
user avatar asked by Vincent Score of 6
user avatar answered by Joseph Wright Score of 6

How can I get the bounding box of a path (drawn with hobby)?

I have drawn a blob using hobby following this question and would like to add an arrow denoting the span of my blob. I have tried following the answer to this question to no avail because the bounding ...

tikz-pgf hobby  
user avatar asked by TheMargatron Score of 5
user avatar answered by Qrrbrbirlbel Score of 3

How to truncate text in latex?

I have a long string of text that I want to shorten for example truncate hash 21dce451e8ddc5e054cf2019511570c3618f871ab0d25c2b12b7c878f3038355 to 21dce...8355 how to do it?

strings  
user avatar asked by konto Score of 5
user avatar answered by Skillmon Score of 8

How to simplify input to a table with many columns?

While preparing a table on musical modes I came accross this situation: entering the 7 pitches as one column looks bad after compile, once accidentals occur finally I had to provide 7 columns instead ...

tables macros substitution  
user avatar asked by MS-SPO Score of 5
user avatar answered by MS-SPO Score of 4

Background package relying on obsolete everypage package

If we try to apply this answer in 2024, we get: Package everypage Warning: Functionality similar to this package has recently (everypage) been implemented in LaTeX. This package is now ...

backgrounds everypage  
user avatar asked by Gaussler Score of 5
user avatar answered by David Carlisle Score of 8

is xindy under use/development?

On one side, xindy seems to be the modern replacement of makeindex, and in my distribution, there is a frequent update of the xindy version, but it seems to be always 2.5.1-xxx. Stackexchange has a ...

xindy  
user avatar asked by user2609605 Score of 5
user avatar answered by Ulrike Fischer Score of 4

Greatest hits from previous weeks:

Using the \tab Command

I have seen several cases of people using the \tab command to insert a specific amount of space between objects (as opposed to the \hfill command which uses any remaining space). However, I have ...

spacing  
user avatar asked by Mathematician Score of 109
user avatar answered by Mathematician Score of 122

Big Parenthesis in an Equation

I have an equation contained inside \[...\], which automatically makes a \sum with sub- and superscripts turn big--so that the summation sign looks awkward inside parenthesis. Any idea how to make ...

math-mode delimiters  
user avatar asked by jamaicanworm Score of 263
user avatar answered by qubyte Score of 387

Is there a way to slightly shrink a table, including font size, to fit within the column boundaries?

I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example. ...

tables scaling  
user avatar asked by Nathan Farrington Score of 207
user avatar answered by Martin Scharrer Score of 300

How can I write cases with grouping braces on both left and right side, and split the condition into two lines in LaTeX?

The code I used to write is this one $$ X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases} $$ But I don't know how to write this one Also, what if I want to write this

math-mode cases  
user avatar asked by Maryà Score of 204
user avatar answered by Ignasi Score of 145

Package natbib Error: Bibliography not compatible with author-year citations

I have a basic tex file and a bibliography which is exported from Mendeley However, when I want to cite in the author-year style, I get the error: Package natbib Error: Bibliography not compatible ...

bibtex errors natbib  
user avatar asked by grrrbytes Score of 285
user avatar answered by Josh Porter Score of 152

What can I use to typeset MATLAB code in my document?

This question led to a new package: matlab-prettifier Does anybody have a quick and easy way to typeset some relatively long MATLAB code in the appendix? I looked up a few methods, and the mcode ...

listings highlighting matlab  
user avatar asked by suzu Score of 120

Syntax similar to \centering for right and left?

For images, we can use \centering. Is there anything available to align the image to the right side or the left side of the page.

graphics horizontal-alignment  
user avatar asked by sachin irukula Score of 188

Can you answer these questions?

Group rows within a \pgfplotstable environment by changing the line widths of cell borders

I would like to group rows within my \pgfplotstable environment. In this context, a group is defined to have the same content in column "Type". Let's say, I have a sorted list like this: \...

pgfplots pgfplotstable  
user avatar asked by Pascal Score of 1

My beamer theme with ignorenonframetext option goes into emergency stop unless I specify \mode<presentation>

This code, that uses the default Madrid theme, compiles correctly: \documentclass[ignorenonframetext]{beamer} \usetheme[]{Madrid} \begin{document} \frame{\titlepage} \end{document} However, using my ...

beamer themes  
user avatar asked by robertspierre Score of 2

TeXlive and luacom

I am trying to extract data from an excel sheet with a lua script and therefore need luacom. TeXlive (2024, Windows) doesn't recognize this library when requiring, because it doesn't come with it. ...

luatex texlive lua  
user avatar asked by Mekronix Score of 1
You're receiving this message because you subscribed to the TeX - LaTeX community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3