Questions tagged [text-manipulation]
about using TeX's programming capabilities to modify input text.
233
questions
1
vote
1
answer
44
views
I want Texts on this Colour-Filled Tikz
I want to be able to write simple text, maths and reach text in this colour-filled tikz image. I want to be able to choose text colours, align the text and be able to shadow the text within the ...
1
vote
1
answer
40
views
How to center imagine but not caption and cite?
For my paper I need to add the source for the images I use. to achive that I have my formating like this
\begin{center}
\includegraphics[scale=0.4]{Images/ci-cd-flow-desktop_edited_0.png}
\end{...
0
votes
1
answer
32
views
How to format the text line?
I am using the listings package. In the output line I have a long line with quotes (') and space (_). One can see the two problem:
The line is out the margin.
The line does not include the quites and ...
1
vote
1
answer
41
views
How to Proportionately Adjust Vertical Spacing Between the Lines in a Scaled Minipage Environment
Consider the code
\documentclass[openany]{book}
\usepackage{scalefnt}
\usepackage{lipsum}
\usepackage{color}
\begin{document}
\thispagestyle{empty}
\LARGE
\lipsum[19]
\vspace*{20pt}
\begin{center}
...
1
vote
1
answer
40
views
How to replace cell entries in a table and keep the changed entries till all the rows in the table have appeared
I want to animate a table as shown in the attached image. First I want the entries of first row to be in normal (without bold). Then at the next click, I want the selected entries to get bold. Then ...
0
votes
0
answers
35
views
Embed a SVG file in a tex source file
I would like to generate latex documents containing SVG pictures with a specific document generator. For specific reasons, I would like to embed these pictures directly inside the latex source file to ...
1
vote
1
answer
35
views
Latex .tex file input highlighted, listed, code
I have the latex document:
\begin{document}
Document introduction.
\onecolumn
\section*{That's how the code looks like}
\begin{algorithm}
\input{z.tex}
\begin{algorithm}
\end{document}
And I ...
1
vote
1
answer
29
views
Transform \textquotedbl quotes to curly quotes
Background
I use pdfLaTeX and I have applied \textquotedbl throughout a long text and I am wondering if there is an efficient way to transform all straight quotes to curly ones by modifying \...
0
votes
1
answer
32
views
Text before in a page, after in a new page
I noticed that, without changing nothing, the same text migrated from a page to a new page. How come and how can I fix this problem?
I didn't provide an example because I'm not able to reproduce the ...
5
votes
3
answers
217
views
Add hyphens to mobile number
I want to add my mobile number in a pdf line being generated using LaTeX
how I want it to render: (+91) 7887-61x-xxx
usage: \mobile{91}{788761xxxx}
% Usage: \mobile{<countrycode><mobile ...
1
vote
1
answer
76
views
Define command to comment text
I would like to create a command \comment{} which would not compile anything inside of { }.
Why would I not use % or \begin{comment} bla bla \end{comment} from the \usepackage{comment}? Because I want ...
2
votes
3
answers
61
views
Ordering vertically aligned words into a paragraph
I am compiling a text in Latin and need to have the pronunciation guide beneath each word. The actual word will be in a larger font size than the guide beneath it, so that the guide never is longer ...
1
vote
1
answer
35
views
Automatically register arguments a command is used with
I am wondering whether it is possible to create some sort of set to keep track of elements in latex.
One intended usage would be to automatically generate a list of arguments that have been passed to ...
7
votes
3
answers
1k
views
Base64 encoding in LaTeX?
How can we encode some text/string using Base64 encoding in LaTeX? or any alternative solution?
For example, the Base64 encoding of string Latex is bGF0ZXg=.
Here's a representation of what I want to ...
0
votes
0
answers
28
views
Enumerate environment inside scalebox
I want to reduce the text below to a scale 0.5:
\lipsum[1-1]
\begin{enumerate}
\item \lipsum[1-2]
\item \lipsum[2]
\end{enumerate}
However, When I use
\scalebox{0.5}{
\lipsum[1-1]
\begin{...
0
votes
1
answer
58
views
Equation with cases and numbering and including text
I am trying to create cases in the equation with numbering to individual cases and trying to push the text which is in \mbox{...} to the right. But I wasn't able to succeed. I request your kind help ...
2
votes
1
answer
32
views
How to apply a linebreak inside a sentence
I want to write down a claim (i.e. a sentence), which consists of three important elements.
The first part (the left hand side of the claim) is supposed to be a very short statement, which I would ...
0
votes
2
answers
161
views
How do I create a text box that will have a fixed size and could be filled with text after the pdf is compiled?
I'm sure this has been answered already but I couldn't find it.
Because I have no idea how it's called I don't know what tag to use, this may have nothing to do with text manipulation.
I want to make ...
0
votes
1
answer
49
views
Adding text under words (to count words) and automatically
In order to count easily words in a text, i'd like to display for each word its "number",
Context : I'm teaching my students to copy a text and to evaluate them I count how many words they ...
0
votes
1
answer
67
views
Adding text moves part of the previous page text to new one
I have an itemize which perfectly fits to the end of the page. However when I add more text after it, last bullet of itemize is moved to the next page with the new text. Is there a way how to prevent ...
0
votes
1
answer
45
views
Normal Text font under math mode
I want to write symbols in the math mode in the normal font as the text. A picture for the same is attached. The code for the math mode is as follows.
'''$14,\mu m {\times} 95 , {\mu} m$'''
I want the ...
2
votes
3
answers
211
views
How to create a fake ToC on a title page?
I wrote a large book of 2000 pages, so I have to split it into 4 or 5 volumes of about 500 pages (250 paper sheets), for printing and paper binding issues. Each volume would have its own front title ...
3
votes
1
answer
61
views
alternating text position in latex
I am writing my PhD thesis and I want to give the following format to my document (see image).
I appreciate any guidance provided.
I have not found any help in the standard "text positioning ...
2
votes
2
answers
84
views
Float text around a figure
I need some help from anyone of you who knows how to code in LaTex. I want to include an image in the left side of the paper and in the right remaining part I want to write some text.
I actually ...
0
votes
1
answer
403
views
How to use displaystyle for all maths expressions in text? [duplicate]
I would like to display all inline maths expressions in displaystyle, but without typing \displaystyle{...} everytime I insert a math expression into a block of text. How can we do that at the ...
2
votes
1
answer
81
views
Blotting Out the Curve Used to Bend Text in a Tikzpicture
This is a follow-up to a question I posted yesterday:
How to Bend Words to Conform to the Arching Pages of an Open Book Image
After receiving no answer to the above question, I have since been able to ...
7
votes
4
answers
923
views
Simple implementation of the abs function by getting rid of or by consuming the "-"?
I wish to build a (simple) implementation of abs.
I tried \FPabs but I get a lot of zeros after the decimal point. I could get rid of them with the FP round function, but I don't know the number of ...
1
vote
1
answer
129
views
Outline text in plain XeTeX?
I use plain XeTeX. I've been asked to include a shamrock character in a typeset document (which I've found at Unicode 2618), but only in outline. The examples in the excellent PST-Text package (page ...
0
votes
0
answers
91
views
text not fitting to column width
I have used a template for a 4 page double column format. It works for all the other pages up to the point shown on the screenshot (end of page 3 to page 4) , and I have no idea what has triggered ...
2
votes
1
answer
92
views
How to get a shorter hyphen in text mode?
I'm creating a title page with large fonts, in French, and I really hate the usual hyphen for such a big title. So I'm looking for a shorter hyphen, something elegant and simple. Here's a MWE ...
0
votes
0
answers
49
views
How to hide the labels of the formulas in the final output pdf?
I want to hide the labels of the math formulas and equations in the output pdf, what is related command to do that? (see the picture)
The followings are the packages I use in my \documentclass[12pt]{...
5
votes
3
answers
698
views
Why does \ifx consider \MakeUppercase{1} and \MakeLowercase{1} different?
In this minimal example, an uppercase number is different of the same lowercase number. Why?
\documentclass{memoir}
\begin{document}
\def\testone{\MakeUppercase{1}}
\def\testtwo{\MakeLowercase{1}}
\...
1
vote
0
answers
41
views
If I am only printing text (characters, bullets, indentation), is there an advantage to using LaTeX?
I need to create a PDF with entries from a database (using C# .NET if it matters, but C# is not required). The final document does have to be physically printed, but the printer does not get LaTeX, ...
2
votes
2
answers
238
views
Custom text alignment
Is there an option to define custom alignment for text? For example, to make your own \begin{flushright}...\end{flushright}?
In particular, I want to have an alignment (for text) that it is centred ...
1
vote
1
answer
65
views
text mining and cross referencing
I want to make an adjacency matrix with citations.
I want to conduct make an index of 130 words and search 130 papers against the 130 words. Manually this is a long process. But I want to automate ...
1
vote
1
answer
59
views
Character replacement does not work correctly
I am replacing a character. It works fine if I give that character as input directly. But when that character is extracted from a string, and then fed in to command for the reassignment it does not ...
0
votes
2
answers
235
views
Writing text side-by-side [closed]
Can someone please help me figure out how to write two columns of text side by side for just a short region of a page in LaTeX? As a MWE please see the attached pic.
Edit : I just want to write two ...
3
votes
5
answers
210
views
separating characters in a string
I want to write a macro that will separate the characters in a given string with some condition.
If I have a string abcdef<ghi>jkl<mn>opqrs I want to access each character as a string for ...
1
vote
1
answer
104
views
how to shift text right in a tabular data
This is code in a simple document I am writing abbreviations.
\begin{tabular}{l l}
\textbf{VM} & Virtual Machine\\
\textbf{AWS} & Amazon Web Services\\
\textbf{GCP} &...
0
votes
1
answer
48
views
How to change the size of all types of text?
I am fairly new to latex, but when I started writing my document, I noticed that the text was very small (from the normal text I used in paragraphs to the text I used to name different sections).
My ...
4
votes
4
answers
590
views
How to write this kind of colour text in LaTeX?
I need to add following text to my latex document. currently I created some image and add it to document.
I need to know some simple way to adding it as text , to my latest project.
An additional ...
0
votes
1
answer
85
views
Text running through the line
I am quite not sure how to create something like this: text across a line border on latex.
Edit1:
\begin{tcolorbox}[enhanced,title=My title,
attach boxed title to top center={yshift*=-3mm},
boxed ...
2
votes
1
answer
53
views
Text manipulation with xstring failing: \@xs@StrRemoveBraces@@
Consider the following document:
\documentclass{article}
\usepackage{xstring}
\makeatletter
\newcommand{\mycommand@firstchar}[1]{%
\StrRemoveBraces{#1}[\FirstChar]%
\StrChar{\FirstChar}{1}[\...
1
vote
2
answers
115
views
\reflectbox in \newenvironment
I have the following problem with the \reflectbox{} command used in a \newenvironment{}: It doesn't do anything. Here's my code:
\documentclass[12pt, a4paper]{article}
\usepackage[utf8]{inputenc}
\...
0
votes
2
answers
238
views
Wrap text in table
I'm trying to convert my CV (originally assembled in word) into a Latex file, largely as a learning exercise. I just wondered if someone could help me wrap text as in my current version certain pieces ...
1
vote
1
answer
75
views
Help drawing as text a number from a formula (For instance [ 1-\thepage)*70+\i ] )
Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template.
I am trying to improve a workaround I found for peer review reference. ...
1
vote
0
answers
35
views
Two Flowing Frames per Page [closed]
I want to write a document where the history, geography, culture of a certain place is the main text. Together with that, I want to present a timeline of events but, rather than a separated topic or ...
1
vote
0
answers
213
views
Alignment inside in-line $$ math environment [duplicate]
I would like to be able to use (equation) alignment inside a simple in-line $...$ environment.
Of course, normally nobody does this, when this is properly done with the standalone equation ...
5
votes
2
answers
204
views
How can i have text between brackets in equation with respect to some criterion?
I try to have something close to that
Here is my try,
\begin{equation}
\begin{array}{cccc}
\partial_t C & + \partial_x u C + \partial_x v C = & D_x \partial_{xx} C + D_y \partial_{yy} C + &...
2
votes
1
answer
57
views
How can I put text in the left margin using enumerate
I'd like to use\begin{enumerate} to create a list of numbered problems, but I want to place text to left of the numeral, in the margin, like this:
Any suggestions?