New answers tagged formatting
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,
...
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 ...
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/
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}{...
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 ...
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{...
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} % ...
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 --...
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 ...
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{...
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}
@...
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:
\...
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 ...
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:
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 ...
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]{...
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 ...
Top 50 recent answers are included
Related Tags
formatting × 5444tables × 542
sectioning × 350
math-mode × 294
table-of-contents × 262
spacing × 240
equations × 197
fonts × 165
chapters × 161
tikz-pgf × 150
biblatex × 145
bibliographies × 141
horizontal-alignment × 131
macros × 127
titlesec × 116
graphics × 113
titles × 112
beamer × 110
color × 106
numbering × 105
header-footer × 100
lists × 100
floats × 97
listings × 95
captions × 84