Skip to main content

New answers tagged

0 votes

How can I center my LaTeX text block in double sides printing?

Thanks for all the comments. Sorry if my question was too terse. I have almost cracked it by using \documentclass[10pt,a4paper,article]{memoir} \usepackage[a4paper, top=7cm, bottom=7cm, ...
Ulf Ehrenmark's user avatar
8 votes
Accepted

retain 0s before digit with siunitx /num notation

siunitx, version 3.3.12 (2024-02-15), does not seems to provide the requested feature in the question (fixed number of digits for the exponent allowing leading zeros or to disable parsing of the ...
Heiko Oberdiek's user avatar
0 votes

How to add a navigation window to a LaTeX generated PDF document?

\usepackage[bookmarks=true]{hyperref} \usepackage{bookmark} This should work. Credit: https://www.reddit.com/r/LaTeX/comments/e3bz4j/how_can_i_display_table_of_contents_in_pdf/
Not That Guy's user avatar
0 votes

Font style for page number for chapter in ToC

For everybody using a KOMA-Script class, you can use this code to set the size of your page numbers in the toc and other listings: \DeclareTOCStyleEntry[ pagenumberformat=\footnotesize ]{default}{...
devbf's user avatar
  • 101
2 votes
Accepted

How do i get a new poetry line to be hanging indented .25 inches yet in a custom blockquote format ,5 inches away from margins?

You want to set a left margin of 0.75in, with a parindent of -0.25in. However, due to the overall settings of ragged2e, you need a blank line to separate poetry lines rather than \\. The code below ...
egreg's user avatar
  • 1.1m
0 votes
Accepted

LaTeX CV: how to contain text in a ``box?''

You need to use tcolorbox package. Here is an example code that tells you how you can use in your latex doc. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tcolorbox} \usepackage{...
Naveed Ahmed's user avatar
0 votes

Displaying a large table over several pages with text wrapping of cells in a larger document

With use of tabularray package table code is simple and concise: \documentclass[11pt]{report} \usepackage[margin=25mm]{geometry} % set page parameters as appropriate \usepackage{ragged2e} % ...
Zarko's user avatar
  • 300k
1 vote

Displaying a large table over several pages with text wrapping of cells in a larger document

My main suggestion is that you switch from longtable to xltabular, which combines the capabilities of longtable (span multiple pages) and tabularx (set a target width -- usually, but not necessarily --...
Mico's user avatar
  • 515k
0 votes

How to divide a bibliography and use \nocite{*}?

Actually, the problem came from the cross-references because some labels had changed. I had to rerun biber and xelatex, despite a three-times compilation at first,to print the whole bibfile. I can use ...
happybobby's user avatar
0 votes

How to format decision problems for algorithms?

I'd like to recommend you read this introduction on algorithms in LaTeX. I suggest using this MWE: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{...
pvti's user avatar
  • 135
1 vote
Accepted

How to divide a bibliography and use \nocite{*}?

You can just use a single \nocite{*} command in your document and the keyword sorting will split the references as you desire: \documentclass{article} \begin{filecontents*}[overwrite]{\jobname.bib} @...
Alan Munn's user avatar
  • 220k
0 votes

How do I add optional arguments in newcommand?

Here's how I would do it (if \c is not used to add a cedilla) (@frougon has mentioned how it works): \newcommand{\c}[1][]{$#1C$} Since \c is a defined LaTeX command, we can use another syntax: \...
Alexander Chew's user avatar
1 vote

Group multiple arrays

The package nicematrix provides tools to ensure an equal width for all the columns of the matrices (created with the environment {bNiceMatrix} of nicematrix) in a given scope. That scope is specified ...
F. Pantigny's user avatar
  • 43.2k
1 vote
Accepted

How to color only the chapter, section and subsection numbers in Table of Contents?

To elaborate on daleif's comment, you should replace each occurrence of \textcolor{red} in your original source code with \color{red}. This will result in the following output:
guemax's user avatar
  • 170
1 vote

How to color only the chapter, section and subsection numbers in Table of Contents?

You cannot always expect that the macros is executed in a manner where they are given an argument. Here, say, \cftsecpresnum is used like this ...\cftsecpresnum #1... where #1 is the numbering. So if ...
daleif's user avatar
  • 55.2k
0 votes

Section title with lines on either side - left justified

I am not sure exactly what you mean by "left justified", since there still appears to be a rule to the left of the section title, but maybe you mean something like this? \documentclass[11pt]{...
Willie Wong's user avatar
  • 25.7k
1 vote

Reformatting a Paragraph Consisting Entirely of Capital Letters

One could patch titlecaps for this situation: \documentclass{article} \usepackage{titlecaps,xpatch} \def\explowerchar#1{% \ifcase\numexpr`#1-`A\relax a\or b\or c\or d\or e\or f\or g\or h\or i\or ...
Steven B. Segletes's user avatar

Top 50 recent answers are included