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.

367 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
649 views

Comfortably typesetting Extended Backus-Naur-Form

On this site I've found some solutions how to typeset Backus-Naur-Forms, e.g.: How to type a Backus-Naur form in LaTeX Which package can be used to write BNF grammars? Unfortunately both solution ...
7
votes
0answers
221 views

How can I set up nested keys using pgfkeys

I've got several documents that I would like to be able to format in different styles depending on the context of the presentation. The content should stay the same, but the formatting may need to ...
5
votes
0answers
1k views

Formatting bash with listings

I writing a documentation in LaTeX about Linux Bash resp. Shell script. And I'm having some problems: How can I start a formatting at the beginning of a line? How can I format between two signs, but ...
4
votes
0answers
579 views

How to get highlights in article before abstract and keywords?

Using the cas-dc document class I am trying to have the highlights of the article before the abstract and keywords in a two word document. Like this picture shows. I am using the template provided on ...
4
votes
0answers
518 views

How to display vertical lines at indents in lstlisting?

I want to display vertical lines in indentations. I already found this thread: Lstlisting and indentation lines, but it isn't what I want. This is how my attempt looks like: This is how I want it to ...
4
votes
0answers
287 views

Where does not TeX make correct spacing and formatting in math formulas automatically?

I am writing book with a lot of math formulas. I am interested to print them correctly according to typography rules, Knuth's recommendations or AMS-society's recommendations. I saw in this question ...
4
votes
0answers
746 views

Wrap text around a centered tikz figure on a poster

Is that possible to prepare a A0 size poster with the following format in Tikz environment or so? The figure in the middle is a mindmap (code available online) and I want to wrap my text around it.
4
votes
0answers
192 views

How to create italic "in press"-year labels for in-text citations by modifying the bibtex style file

I'm looking for a way to add "in press" in italics into my bibtex-style file for publications for which a doi already exists. As I'm using a Natbib-AuthorYear reference style, I have to add this in ...
4
votes
0answers
1k views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
3
votes
0answers
93 views

How do I add a dot inside the zeros on the date?

My MWE \documentclass[a4paper,11pt]{article} %%%%%%%%%%%%% dot with zero \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math axis \sbox2{0}% \sbox4{0\/}% \ooalign{% 0\...
3
votes
1answer
4k views

Adding IEEE copyright notice to LaTeX template

I am trying to add the IEEE copyright notice to the template provided here: http://www.icb2019.org/Misc/icb2019_latex_for_review.zip I have tried the following commands: \...
3
votes
0answers
83 views

Correcting formatting for framed theorems

I have been using the following code to create overhang for my theorems (and other theorem-like environments) for a while now. \documentclass{article} \usepackage{amsthm} \usepackage{mdframed} \...
3
votes
0answers
607 views

C++ Code formatting

i have read a lot and for a long time in your great forum. Now this is my first question. I included C++ Code in my latex document and I formatted it successfully. But one detail isn't working. I want ...
3
votes
1answer
1k views

format line spacing and abtract

How do i remove the space infront of the 'Lorem' and how do i set the linespacing to 6pt after abstract ? Requirements: Abstract heading Alignment : left Size : 13pt , bold italic Times New Roman , ...
3
votes
0answers
542 views

Positions of variable indices: use of package "subdepth"

For some reasons I like to align top of indices regardless if variable has exponents or not and if exponent is a, 1 or g, p, q, y. With use of package [low-sup]{subdepth} the aligning is improved, ...
3
votes
0answers
871 views

Changing top margin for second page only? \vspace inserts extra whitespace

I am trying to format a LaTex template for pandoc output from .md to pdf. The document is for lengthy university papers requiring very specific layout. The majority of the paper has 1 in margins all ...
2
votes
0answers
59 views

ToC appearance to be customized/optimized

Unfortunately a minor problem with my ToC encountered recently. My recent research in the internet was equally unsuccessful. Thats why I ask you for help and I hope there is somebody skilled out there ...
2
votes
0answers
25 views

Making selected, isolated siunitx-formatted cells bold in a table

I want to bold selected, isolated siunitx-formatted cells in a table. Generally, I do this with \bfseries and \usepackage{etoolbox}, as suggested in Joseph Wright's answer here. However, in the ...
2
votes
0answers
51 views

Is it possible to concatenate itemized lists?

I am currently keeping track of my research / tasks to do in a LaTeX lab journal. The organization of each day in the Latex code is essentially like the following toy example: \chapter{Saturday, 2nd ...
2
votes
0answers
100 views

Change subscript font size in ConTeXt

In ConTeXt, is it possible to make subscript font larger (but not other parts) in math formulas? I'd be happier if it takes effect document-globally. I'm creating a document like this (my real example ...
2
votes
0answers
83 views

What is the difference between \usepackage[margin=1in]{geometry} and \usepackage{geometry}, \geometry{margin= 1in}?

I would like to know the difference between this: \documentclass{article} \usepackage[margin=1in]{geometry} and: \documentclass{article} \usepackage{geometry} \geometry{margin=1in}
2
votes
0answers
63 views

Formatting multiple characters and glyhs/accents within the same word

As an extension to the macros (\FormatChar - \FormatChars - \ColorNthChar - \colorrange) posted in: Apply command on nth character of a word Emphasizing Arabic text characters Apply command on ...
2
votes
0answers
259 views

Subfile Sectioning number

So I want to write my Script in LaTex and wanted to Structure it using the Subfile Package. I managed to include it and the main.tex file is working as wanted. My problem now is, that when i want to ...
2
votes
0answers
1k views

Is there a particular way to add an appendix in the Springer LNCS format with LaTeX?

I'm required to add a one-page appendix to an article written in the Springer LNCS format, and I write on Overleaf (where the Springer LNCS template doesn't include appendices). Is there a specific ...
2
votes
0answers
47 views

positioning rgb wave bar

What is the code to position the rgb wave bar on the left of page in vertical format? Also when positioned at the bottom of page why does the line at the bottom of page shorten its length--the line ...
2
votes
0answers
312 views

Extremely weird formatting of text in section

\documentclass[a4paper, 11pt]{book} % Packages \usepackage[utf8]{inputenc} \usepackage{graphicx} % For images \usepackage{titling} % For adjusting white space above headers \usepackage{titlesec} % ...
2
votes
0answers
39 views

Render/export latex into non-paper-oriented formats

I use Latex very much and I generate many PDF files. I love the output quality. However I almost never print these PDF files, I always read them from the computer. Thus I find it nonsense to have the ...
2
votes
0answers
197 views

Formatting code of a tex file output by Lyx

When converting a LyX document to a TeX file, I've noticed that the resulting code is not formatted in a "pretty" way. For example, when writing my own documents in LaTeX, I will tab lines with ...
2
votes
0answers
120 views

How to change the zero in increasing numbers with dotted zero?

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math ...
2
votes
0answers
101 views

Automatic paragraph numbering within subsections

I'm attempting to create a similar format to a word document (example attached) within LaTeX but I'm having a lot of issues with achieving. The document is an article and every single single paragraph ...
2
votes
0answers
62 views

Accurately remove whitespace introduced by footer on only the first page

I have a document that has text that very nearly reaches the limits of the page geometry (the document has one centimeter margins). I have a footer (using fancyhdr) on all pages except the first by ...
2
votes
0answers
248 views

Easier row grouping on tables

Sometimes I want to group some rows like that: Now I can do that like that: \documentclass[a4paper]{report} \usepackage{geometry} \geometry{a4paper,total={170mm,257mm},left=20mm,top=20mm} \...
2
votes
0answers
104 views

Writing under conditions in a tcolorbox using fontspec

This is my third question in 2 days but Im struggling with a problem and I have the feeling I'm not far from finally solving it, but cannot figure it out myself. I have a document for my students who ...
2
votes
1answer
175 views

Multicol listings and ntheorem rendering wrong

Given the quite long MWE: \documentclass{memoir} \usepackage[dvipsnames,table]{xcolor} %\usepackage[showframe]{geometry} \usepackage{mathtools} \usepackage{needspace} \usepackage{multido} \usepackage{...
2
votes
0answers
459 views

Would you know a diary with notes template (A5 format)?

Would you know a diary with notes template? Pdflatex and Tikz would be the best to perform this. It would be great to have the time slots + below/above some place for some notes and priorities. It ...
2
votes
0answers
58 views

How can I recolor each part of citations in BibTeX?

I can't find a way to color each part of a reference just like the attached image. I am using BibTeX to create bibliographic references along with the style aasjournal.bst, but there are two problems:...
2
votes
0answers
574 views

Is it possible to get the leading spaces in copy/paste from PDF?

Using this solution Only Select Code without Line Numbers I allow the listings to be copyable from PDF w/o the line numbers and many extra spaces. But that also removes the leading spaces used for ...
2
votes
0answers
137 views

How can I customize headings in book-class?

I am writing my master thesis in the book-class in Latex and need some help to format the headings in the document. I have a Word-template from the University which have specific formats of the ...
2
votes
0answers
565 views

How to move the abstract to the left column?

My question is similar to this question, however, instead of a picture, I wish to move the abstract section to the left column, using same document class. Can anyone help with this? The document ...
2
votes
0answers
517 views

Changing the Font of Variables in an Equation Using XeLaTeX

I am trying to digitalize a book(130pages) by retyping it all(copy is in a really bad shape to be scanned). I am attempting to use Helvetica Neue as the main font for all numbers and variables on all ...
2
votes
0answers
150 views

htlatex adding _ after - in URLs

I'm using htlatex on Fedora 21, texlive-tex4ht-svn33024.0-1.1 I noticed that whenever a URL has a hyphen within it, in the HTML output it's formatted with an underscore symbol following -. For ...
2
votes
0answers
339 views

Generating LaTeX reports from XML *without* external scripts

First of all, I apologize if this is pretty similiar in nature to my previous question: Reading and (custom) formatting a CSV (not \csvautotabular) I thought it would be better to separate the two ...
1
vote
0answers
20 views

How to format numbering of sections/subsections in titles and TOC in Beamer

I have some questions regarding formatting and numbering in Beamer. I have changed the section numbers to double digits, which looks something like this: 01 Section 1 01.01 Subsection 1 of section 1 ...
1
vote
0answers
28 views

Global table formatting, thin and think hlines, apply to all tables

How can I define a table formatting style that will automatically be used throughout my document? For example, I understand that I can use the caption package to specify caption formatting used ...
1
vote
0answers
75 views

Command to format latex source code?

I've been typsetting this last weeks and my code looked like something garbage. I wouldn't want to manually format this as it is tedious, and I wondered if there is such command to format latex source ...
1
vote
0answers
25 views

Splitting Tex document in two sections with different formats

I would like to collate my two research papers in one document. One paper is written in one column format (\onecolumngrid) and the other in two column. Each have their own appendices. So the structure ...
1
vote
0answers
91 views

The variable \partname is not included in the CONTENTS output display in amsbook class

% %------------------------------------------------------------------------------------------------------------------------ % \documentclass[english,11pt]{book} %---------------------------------------...
1
vote
5answers
128 views

Making a note using LaTeX and finding the formatting of a specific book

I really want to make my own notes in a friendly format, obviously using LaTeX. But, since I have a little knowledge about LaTeX and its functions, I go through some books, articles, online notes ...
1
vote
0answers
47 views

How to add text at the start and end of each line?

I would like to add some text at the end of each line. For example, for the input This is a long text that will be split by LaTeX into various lines. I want to obtain This is a long textX Xthat will ...
1
vote
0answers
42 views

How to place images in latex so that it doesnt consume extra blank space?

I am writing a report in which when I place an image it is creating lots of blank space and the formatting looks bad. This is how it looks like I have used the following latex command for this \begin{...

1
2 3 4 5
8