Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [formatting]

{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

0
votes
0answers
20 views

How to create a nomenclature- or glossary-like section in LaTeX without downloading the packages?

I'd like to create something ideally like this: (glossaries package - How to format the positions of the columns and width of the glossary?) but without using the glossary package because I'm having ...
1
vote
1answer
34 views

Creating bold and italic text not working with a custom font?

\textit{\textbf{Text here}} and \textit{Text here} is my code. I am using the font which can be downloaded for free from: https://sansforgetica.rmit/ However creating bold and italic text for ...
1
vote
1answer
16 views

First line to always start at fixed location independent of anything that comes before it

I created my MWE with the help of this Q&A. Issue: I think it works great, the only issue is that the length down from the top of the page that the lipsum paragraph starts at in the first page ...
1
vote
0answers
17 views

Roman to Arabic Listing Caption Numbering [on hold]

I'm working on my thesis that uses many code listing in it. In each listing, I want to put caption with the chapter number followed by the position of that listing on that chapter. The problem is my ...
0
votes
0answers
21 views

Using \equiv causes my font to become italicized and doesn't allow spacing [duplicate]

I am trying to write a logic equation with symbols and when I use \equiv everything afterwards is italics and does not allow spacing, even if I go to a new line. Example: p \to q \equiv \lnot q \to ...
0
votes
0answers
22 views

Move text to the very end of the Chapter

I am writing my thesis in Chapter form. Each chapter has sections. I want to move my final section titled 'discussion' at the very end of the chapter. However, it is coming either before or between ...
1
vote
0answers
23 views

Box / Frame / Border around quote

I have been using minted to tcolorbox and etoolbox to draw a border around source code blocks (Box around minted environment). Now I'd like to do the same for quote blocks, but I am not sure how to ...
3
votes
2answers
140 views

Hyperref in mathematical equations

With the following codes: \documentclass[12pt,a4paper]{article} %------------------------------------------------------------ \usepackage{amsmath,amssymb,amsthm} %-------------------------------------...
1
vote
1answer
20 views

reledpar: apply formatting to right-side paragraphs

In reledpar I'm trying to format all right-side paragraphs with italicized text all at once, without enclosing every paragraph in \textit{}. Is this possible? The closest I've come is with \...
1
vote
1answer
23 views

Running header at center after the first page in article class

Can I do this without explicitly putting in \newpage or a page break? Note that I also have sections in my article. \documentclass{article} \usepackage{lipsum} \begin{document} \pagestyle{headings} \...
0
votes
1answer
53 views

How one can keep two young table middle of the page [closed]

\begin{Young} &&&&\cr \cr \end{Young} \begin{Young} &&\cr &&\cr \end{Young} Those are two young tables. Please help me to keep those tables in the same line middle ...
1
vote
0answers
10 views

How to format LabelString in Lyx .module file?

MWE Style Brief_Name Category Pleading LatexType Command Align Left Margin Dynamic LabelType Static ...
0
votes
1answer
35 views

Table of Contents incorrect header format [closed]

In my document, I have many pre-sections (i.e. Table of Contents, List of Figures and List of Tables). Unfortunately, when I run my LaTeX file, those sections (TOC, LOF and LOT) have the incorrect ...
0
votes
1answer
14 views

Interaction between pdflscape, multicols and \twocolumn

Testing the following source code: \documentclass[10pt]{article} \usepackage[a4paper,margin=1cm]{geometry} \usepackage{multicol} \usepackage{pdflscape} \usepackage{lipsum} \begin{document} \...
1
vote
1answer
37 views

How do I “unlink” the rows in one column from the rows in another column?

MWE \documentclass{article} \usepackage{multirow} \pagestyle{empty} \usepackage[left=1.25in, top=1in, right=0.85in, bottom=1in]{geometry} \usepackage[thinlines]{easytable} \begin{document} \begin{...
3
votes
3answers
61 views

How can I put every `verbatim` environment inside a `Shaded` environment by changing the preamble only?

Unfortunately, I have a lot of TeX code which should look different that it does not, but I cannot modify its code body. However, I can modify the preamble and for example, I have learned that I can ...
0
votes
0answers
30 views

Caption of subfigure is not centering

I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by ...
2
votes
1answer
109 views

General question: How do understand latex warnings and errors? Is there any documentation on it?

Lots of times I get warnings or errors, but I can never figure out how to decipher them and I can't find any good documentation or guide going through how to understand these errors. For example: I ...
4
votes
2answers
137 views

Including large images in landscape formatting

I'm having issues including large images in landscape mode This is about as large as the image will render Changing the size makes the orientation switch Ideally I'd like to be able to have a ...
3
votes
3answers
85 views

Redefine `\uline` so `\colorbox` is locally defined to have underlined text, too

Initial problem: I want to underline the text with a continuous line with the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Workaround: A ...
3
votes
2answers
115 views

How to fix this capitalization issue of a macro in the title-command?

I wrote the following code to typeset the title page of a paper: \documentclass{amsart} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[USenglish]{babel} \begin{document} \title[...
0
votes
1answer
26 views

Template for Evolutionary Intelligence Springer journal [closed]

I am a bit new to latex, is there anyone can help to find latex template for Evolutionary Intelligence, a journal from Springer? Thanks in Advance.
2
votes
1answer
63 views

How I can remove formatting from text and convert it to URL?

I need to remove any type of formatting from a text to get an URL multi-formatting. By keeping the following model, I have tried various solutions but without having the desired result. Would anyone ...
10
votes
1answer
155 views

Improving alignment of signed fractions in table

I would like to find a way to better align signed fractions in a table. Take the following example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table}...
5
votes
3answers
88 views

Alignment of implication arrows with text on top

My proofs often look like this: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align} &\text{First Statement}\\ &\implies \text{Second Statement}\\ ...
2
votes
2answers
27 views

How to format two equations on the same row but then carry on with one of the equations below?

This is my code: The Lagrangian \eqref{eq:14} differentiated according to \eqref{eq:15} gives the equation of motion in terms of linear acceleration $\ddot{x}$: \begin{align} \label{eq:17} \frac{d}{...
7
votes
1answer
60 views

Effect of `\label` on caption position in new environment

I use a new environment and have tried to refer to it using the \label-\refcommands. I'm running into the problem that the \label command affects the vertical position of the caption. The MWE is: \...
1
vote
1answer
63 views

Formatting of new environment based on minipage and sidecaption

In my memoir-based document, I need to occasionally insert some content (text quote or pseudocode) and I want to be able to add a caption. Because the content must appear exactly where I want it, I ...
0
votes
2answers
49 views

Searching for a special package to describe strings

I am quite new in LaTeX and at the moment I am looking for an opportunity to describe strings (or URLs) like this: Do you know a package I could use for something like this? Thank you for your help!
0
votes
1answer
18 views

LaTex - Turn off alternating page numbering and paragraph indenting in memoir / bianchimod

I'm using a Latex template which uses memoir style and \chapterstyle{bianchimod}. I noticed that on every page there's an alternating behavior of the paragraph and the page number positions. ...
2
votes
1answer
35 views

Optical Mark Reader answer-sheets?

I found the following nice code in this question Mcq Answer Grid with Tikz but I want to add name box on an answergrid Here is the code : \documentclass{article} \usepackage{tikz} \usepackage{xparse}...
3
votes
1answer
90 views

ConTeXt: Squiggly Underbar

Is it possible to create a squiggly underline? Like this, but wavy: \setupwhitespace[big] \starttext \underbar{\samplefile{knuth}} \stoptext
1
vote
1answer
59 views

How to add large braket like in picture?

How can I make brackets like this in this picture: \documentclass[tikz,border=3.14mm]{standalone} \begin{equation} \label{eq:1} P(k)= (\sum_{min}^{max}\frac{{K \choose k}{N-K \choose n-k}} {{N \...
2
votes
1answer
27 views

Forcefully positioning header page numbers for even and odd pages

I'm trying to write a syllabus and I want the page numbers to be on alternating sides of each page. I am using the package fancyhdr, and know the command to accomplish this, \fancyhead[LE,RO]{\thepage}...
2
votes
1answer
20 views

Error in align environment with equation using union and intersection of sets

I try with the align environment without success to get the following equation: Can anyone help me? Here is my code but I get all the time the error message "Extra }, or forgotten \right" \begin{...
0
votes
0answers
27 views

Formatting long division involving decimals

I am looking for ways of improving the formatting I have been using to present long division involving decimals. Using this answer I have managed to come up with the following MWE. \documentclass{...
0
votes
1answer
37 views

How can I use `\uline` from the `ulem` package to underline text inside a `\colorbox`?

Screenshot: I have the following code: \uline{No underlining for \colorbox{lightgray}{everything} inside the colorbox.} Which looks like this: How can I get a continuous line for the text inside \...
1
vote
2answers
49 views

Numbers immediately after operator subscripted in mhchem environment

The following is the output of this MWE: \documentclass[12pt]{article} \usepackage[version=4]{mhchem} \usepackage{siunitx} \begin{document} \ce{a = 2 \times 3}\\ \ce{a = 2 \div 3}\\ \ce{a = 2 \times ...
5
votes
2answers
209 views

How to format an Association in Latex?

I'm trying to format an Association from Mathematica which looks like this: This is what I have so far, but it doesn't look the same: \documentclass{article} \usepackage{graphicx} % for \scalebox ...
0
votes
1answer
34 views

How can i write after wrapfigure without wrapping the Text?

I trying to write somethings from school in LaTex. Now I ran into a problem: If I'd use the wrapfigure command with a very short text the next paragraph also wrap, which I don't want. Here is the code:...
2
votes
1answer
49 views

Escape lots of backslashes and other special characters

I'm trying to write a Unix command in LaTeX, but it seems to be stuck on special characters. Is there a way to escape backslashes, accolades, dollar signs etc.? The command is the following $(python -...
2
votes
2answers
73 views

Aligning equations in IEEEtran

My output PDF should look like Instead, it looks like Can you help me? I'm showing just the second page, as the first page of my pdf and the reference pdf are identical. Here I show my code. Thanks ...
4
votes
2answers
21 views

Section formatting: text/ornament after and before within the title

I would like to do redefine the section title command by enclosing it with ornaments like the following: ~ornament~ SectionTitle ~ornament~ I had looked up the titlesec documentation and many more ...
2
votes
1answer
23 views

Makeindex - Is it possible to set page numbers on the right border instead of using the comma delimiter?

I'm creating an index using the makeidx package, and would like to change the default behavior: key, number to something like: key ..................................................................
0
votes
1answer
32 views

Error with \titleformat command after inserting TOC

MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsfonts,amssymb,amsbsy,amsmath} \usepackage{tocloft} \usepackage{times} \usepackage{titlesec, titleps titletoc} %%\titleformat{...
1
vote
2answers
85 views

Formatted list with bullet progress bars

I would like to create a list with a bullet progress bars formatted like this: Any help would be much appreciated :)
-1
votes
0answers
34 views

Installing new packages in LaTeX

How can I install new packages in LaTeX? I am using TeXstudio. What should I do to install a new package? I tried to download the package file in the same folder I had put my document but it did not ...
-1
votes
0answers
26 views

How to format the text while writing algorithm in steps

I was working on my college seminar and I couldn't able to type the below algorithm in LaTeX. Originally this algorithm was proposed in "A Convolution Particle Filtering Approach for Tracking ...
0
votes
1answer
20 views

Multilined and Misformatted Table of Contents in Master/Subfiles Document

I'm trying to figure out what I did that screwed up the formatting of this course notes template. I apologize for not having a better MWE, but it seems to all have parts together to it. MWE (edited):...
1
vote
0answers
45 views

Transparent package alters tikz color opacity [duplicate]

When using the package transparent for some elements in text, it has a huge side effect: it alters the colors also in any TikZ image of the document. This is the result without using the package: \...