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.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

How to change Heading of chapter

I want to change head of chapter as in the next picture in the class memoir
0
votes
1answer
23 views

Getting something Indented and I do not understand why

Please consider the following LaTex code: \documentclass[a4paper,11pt]{article} \usepackage{amsthm} \usepackage{amsmath} \usepackage{array} \usepackage{float} \restylefloat{table} % define the title \...
0
votes
0answers
14 views

Printing Instructor's (all items) vs. Student's Solutions Manual (odd items only) (Take 2):

This is a rephrasing of a previous question I posed. I do thank the individuals that have helped to resolve it. I apologize for the lack of clarity in my previous post. So, here it is again... I ...
2
votes
1answer
31 views

How do you / Can you suggest column breaks?

I know that you can suggest a pagebreak with \pagebreak[0..3], but is there an equivalent for suggesting a column break?
0
votes
0answers
38 views

Set interparagraph spacing to line spacing

I have an assignment which the instructor is requiring to have no extra spacing between lines and double spaced. I currently have \linespread{2} to get the double spacing but I'm unsure how to go ...
1
vote
2answers
55 views

Formatting a bibliography for a specific journal's requirements

A journal has asked me to format my work so it conforms with their citation and bibliography guidelines - the problem is that their formatting guidelines are really weird, and they don't have a ...
1
vote
1answer
25 views

Biblatex: Formatting @online and @incollection bibliographic entry types

I'm trying to format two Biblatex entry types. For the @incollection entry I want to get rid of the first comma (marked in yellow) and change the second comma to a period. For the @online entry I ...
3
votes
2answers
95 views

Rowstyle – Polyglossia Latin clash: illegal pream-token

After updating my TeXLive today (last updated about six weeks ago), the following MWE will stop with the recrimination: Illegal pream-token (^): `c' used. If I comment the Latin activation line, ...
0
votes
1answer
47 views

Problem with tabular column type m{} [duplicate]

I've got the following tex code: [...] \usepackage{array} \usepackage{tabularx} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} [...] \begin{tabular} {|m{.465\textwidth}|C{.1\...
1
vote
1answer
26 views

Overfull \hbox when typing inline Math equations. Can we make it adaptive to go to the next line?

Hey guys so below is my Tex command: \subsection{Bicubic Interpolation} This is an extension of the cubic interpolation method in a two dimensional regular grid. Given the function values $f$ and ...
1
vote
1answer
37 views

How to better format a wide table and remove extra spacing between columns?

I have typeset a wide table which looks like this. Please ignore the repetitions in the column values: I want floating point values aligned w.r.t decimal point. I also want to keep the values in the '...
0
votes
2answers
39 views

How do I make this document print out in a two sided manner, at least have two pages within one page?

Below is what I have tried but it does not work, I am not sure how to do this at all: \documentclass[10pt]{article} \usepackage[margin=0.1in,paperheight=89mm,paperwidth=141mm,twosided{geometry} \...
0
votes
1answer
14 views

How to force a listing inside a column in overleaf

I have the following listing: \begin{lstlisting}[language=php] $post_data = {"image": base64.b64encode(data).decode("utf-8"), "get_img_flg": True} $res = requests.post("http://localhost:...
3
votes
2answers
106 views

Command \textbackslash invalid in math mode

I'm trying to write LaTeX code in my document. Could someone help me with this error message: LaTeX Warning: Command \textbackslash invalid in math mode on input line 4. {\fontsize{10pt}{12.0pt}\...
0
votes
0answers
39 views

Recreation of Typeset Environment in Rudin's book

I need to produce some mathematical notes and I would like to produce those notes in Rudin's style. The following are some excerpts from his book. Specifically, I would like to know how to reproduce ...
4
votes
1answer
38 views

How to format bibliography references to avoid page overun?

As the title suggests, some of my references are overrunning the page when a website is included. How do I make it wrap to the next line? Example of problem: Minimum example: \documentclass[...
0
votes
0answers
38 views

Converting MS word citations directly to LaTeX

I have more than 200 references formatted in MS Word, as given below: Farooqui, A., A. Khan, and S.U. Kazmi, Investigation of a community outbreak of typhoid fever associated with drinking water. ...
2
votes
1answer
94 views

How to typeset upright ħ?

As described in this answer, constants should be typeset upright, not in italics. However the symbol for reduced Planck's constant (, \hbar) is in italics by default. This is especially obvious when ...
1
vote
1answer
34 views

I am trying to align all the periods in the values of my column

My code is: {\renewcommand{\arraystretch}{1.3} \tabcolsep=2.0\tabcolsep \begin{table}[t!]\small \caption{Estimated Parameters of the Aggregate Production Function:Final Specification (1 Break: 1974-...
0
votes
0answers
34 views

How do I put a Header and Footer on the first page of a letter?

So the header and footer works on every other page but I cannot for the life of me figure out how to get it on the first page. This is all I have that isn't just text related. \documentclass[12pt,...
2
votes
2answers
69 views

Why does the first footnote display as the second?

I'm writing in the Springer LNCS format, and I added a footnote to the caption of a figure: \documentclass[runningheads]{llncs} \usepackage{graphicx} \usepackage{amsmath} \usepackage{appendix} \...
0
votes
1answer
61 views

Number section-LaTex

How Can I change the format number section, subsection, and subsubsection? The document put: Section (I.) Subsection (I.1) Subsubsection (I.1.1) But... I want: Section (I.) Subsection (1.1) ...
2
votes
1answer
50 views

\texttt causes problems with quotes and angled brackets ("<)

In my LaTeX source-code I need to emphasize some terminal commands. For that I use \texttt. This worked fine for most commands, but some special characters cause problems: myapp --url "<webserver-...
1
vote
1answer
32 views

Redefine thesection only for toc and section

\renewcommand{\thesection}{§\arabic{section}} I added the section symbol before the section number but the change is made in places where I don't want to see it like for subsections or theorems. How ...
1
vote
1answer
46 views

Create Hand-Filled Form

I'm creating a form for people to print and fill out. Currently, I'm using \usepackage[normalem]{ulem} \begin{document} I, \uline{\hskip 3cm}, instated \uline{\hfill} \end{document} The only ...
0
votes
0answers
42 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 ...
0
votes
1answer
36 views

how can modified the footnote boxes size so that fit into my body of the text and looks better in printing

Hi I am a beginner of Latex, and i met a problem such that the footnote has conquered so much space at the bottom of page, for which i want to change it to a smaller size so that to fit into the body ...
0
votes
0answers
36 views

Attaching text box to tikzpicture (syntax tree)

I'm looking to attach some text to a specific node in this syntax tree with an arrow. Currently, I can't get the text to span over multiple lines, so it just cuts off once it reaches the right margin. ...
0
votes
1answer
24 views

Multiple multicolumns in tabular messes with text alignment of each other

I'm having an issue with multicolumns in a tabularx environment. When I have one multicolumn (in the first row) it is formatted correctly: When I add a second row however, the format messes up: A ...
2
votes
1answer
58 views

With Pandoc, how to apply a style to a “fenced div” block?

I use Pandoc to generate an output from a Markdown file to many outputs: html, word (.docx), latex, pdf, etc. I tried using the "fenced div" feature to style differently some parts of the text. For ...
2
votes
1answer
33 views

Change float caption formatting

My question refers to the floats specifiers. For instance, figures have specifier Figure #: Blah blah blah..., i.e., the type (Figure), the number (#), the colon (:), and then the caption (Blah blah ...
0
votes
1answer
31 views

Title in cover page out of page boundaries

I am using the following code in a separate file from the main code, for the layout of the cover page of my dissertation: \noindent\rule{\linewidth}{1mm}\\[1.4em] {\noindent\Huge\sffamily \begin{...
0
votes
1answer
30 views

Empty line after dirtree?

I have a dirtree in my latex file, followed by a block of text. However, between the end of the diretree and the start of the textblock there is no space. I want to add an empty line in between, but I ...
2
votes
1answer
60 views

Format the section heading

I would like to have the section headings formatted as follows (Please note the top-right corner is curved): I tried many things like : (1) using a tcolorbox - In this case, I cannot shift the left ...
4
votes
3answers
624 views

How would you manage to put a vertical bar right to a system of equations?

I've been using the systeme package to write systems of linear equations but I need to do something I don't know how to. I'm trying to put a vertical line to the right of the system and write text ...
1
vote
1answer
17 views

LaTeX code for formatting sequential equation references differently from non-sequential references?

Consider a simple macro, \Eqs{ref1}{ref2}, accepting references ref1 and ref2 as arguments. In the current environment, the commands \ref{ref1} and \ref{ref2} expand to simple unformatted integers, e....
0
votes
0answers
26 views

Format x tick with correct scientific notation in tikz

This is my code: \begin{figure}[h!] \label{some_label} \begin{tikzpicture} \begin{axis}[ width=0.9\textwidth, height=0.5\textwidth, xlabel={PER}, ylabel={Throughput [bps]}, xmin=0....
0
votes
0answers
24 views

Making LaTeX document with fixed dimensions

I am trying to create a document that has a fixed dimension of 1024 pixels x 512 pixels. Here is an attempt so far: \documentclass[11pt]{article} \usepackage{geometry} \usepackage{lipsum} \usepackage{...
4
votes
2answers
289 views

How do I correctly align this equation?

I am currently trying to format the expression \documentclass{report} \usepackage{mathtools} \usepackage{amsmath} \DeclareRobustCommand*{\maxin}[0]{_{\boldsymbol{\raisebox{1.55pt}{$\scriptstyle\chi$}...
0
votes
4answers
79 views

What is the best way write this long expression neatly?

I currently have this equation given by \begin{document} {\scriptsize \begin{equation} \omega_{\mp}^j=2\arctan\left(\frac{\mathbf{z}_{\hat{3}}^j\cdot\left(\mathbf{z}_1^j \times \mathbf{z}_2^j\...
1
vote
1answer
36 views

How do I centre and fix this table in the document?

Here is the latex code: \begin{table} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline Sr. No & R (kpc) & $v_rot$ (km/s) & $v_rot-\sigma$ & $v_rot+\sigma$ & $v_rot-st. error$ &...
1
vote
1answer
35 views

tcolorbox image not fitting

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[a4paper, total={8in, 11.9in}, margin=0.75 in]{geometry} \usepackage[most]{tcolorbox} \usepackage{varwidth} \...
1
vote
1answer
60 views

How can I nicely format my form in LaTeX?

I am in need for a little authorization form and decided that this is great opportunity to use LaTeX. Here is what I have so far (minimized, translated to English—not the actual form of course): \...
2
votes
2answers
43 views

Why `\multicolumn` and `\hdotsfor` do not work as expected?

I have the determinant \documentclass{article} \usepackage{amsmath} \begin{document} $$ \begin{vmatrix} a & b & \ldots & \ldots & \ldots & \ldots \\ a & b ...
16
votes
4answers
1k views

Creating a macro that can selectively format capital letters

For a project my partner and I are working on, our text includes a great number of words in mixed lowercase and smallcaps: We're currently doing this with a rather clunky macro: \newcommand{\famword}...
0
votes
0answers
28 views

How to add a logo on a page?

I would like to add my school logo on the first page of a document. On another question I found the following code. Unfortunately it changes all the spacing on the page (see the two screenshots with ...
6
votes
2answers
362 views

Triple Approx Symbol

I would like to generate a triple version of the approx symbol as an accent for math symbols. Thanks to this question, I already have half of an approx symbol, defined as \DeclareRobustCommand*{\...
3
votes
1answer
251 views

Half of approx symbol

I would like to use half of the \approx approx symbol as an accent above a variable instead of \sim. This is due to formatting reasons, see The symbols are almost equivalent, however \sim is ...
0
votes
0answers
40 views

Hangindent and page breaks

I like using \hangindent in my math documents to properly and nicely separate paragraphs and emphasize the first line, which usually contains the title of the theorem of definition. However, I've ...
0
votes
1answer
35 views

Titlesec + Tikz: consistent underlining

I'm trying to create a custom section style using titlesec and Tikz. My current code is the following: \usepackage{tikz} \usepackage[explicit]{titlesec} \definecolor{mygreen}{RGB}{25,170,75} \...

1 2 3 4 5 81