Questions tagged [text-manipulation]

about using TeX's programming capabilities to modify input text.

Filter by
Sorted by
Tagged with
7
votes
3answers
774 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
0answers
18 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
1answer
30 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
1answer
30 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
2answers
61 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
1answer
31 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
1answer
27 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
1answer
28 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
3answers
96 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
1answer
46 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
2answers
74 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
1answer
76 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
1answer
68 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
4answers
918 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
1answer
96 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
0answers
34 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
1answer
71 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
0answers
43 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]{...
0
votes
0answers
24 views

Textboxes on my PDF don't show up when loaded into LaTeX

I have used a PDF reader to add textboxes to a PDF image. When I save the changes, one can open the PDF and see that there are now textboxes on it, but if I try to upload the PDF into an article ...
5
votes
3answers
657 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
0answers
37 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
2answers
146 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
1answer
53 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
1answer
45 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
2answers
110 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
5answers
158 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
1answer
47 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
1answer
38 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
4answers
271 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
1answer
74 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
1answer
43 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
2answers
79 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
2answers
171 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
1answer
68 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
0answers
32 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
0answers
169 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
2answers
199 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 + &...
1
vote
1answer
46 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?
2
votes
1answer
7k views

How to add a superscript in text mode

I'm writing about C* algebras and I'm trying to write *-strings efficiently. I managed to define C* like this: \newcommand{\Cstar}{C\textsuperscript{*}} While I have to invoke it as \Cstar{} to ...
1
vote
1answer
291 views

A way to use textbf and textit at the same time with one command

Hello I have to make a document where I use a lot \textbf and \textit at the same time, so I tried to create a new command where it use both at the same time, but it gave me an error and I don't know ...
0
votes
1answer
606 views

\rightsquigarrow with the text above and below it [duplicate]

is it possible to write a text above and below the \rightsquigarrow? I am trying \xrightsquigarrow[\text{b}]{\text{a}}, but it is not working.
4
votes
1answer
895 views

How to add multi-line text below a node in a tree in forest

I want to make a tree which has bulleted lists centered below the child nodes, like so: I've searched on TeX SE and found questions which describe putting labels below nodes, but it doesn't quite ...
6
votes
4answers
844 views

Make blocks of text invisible only if said so

Is there any command which allows me to make some blocks of text invisible only if initially I said so? I.e., I would like to mark some lines throughout the text that would only appear in the ...
0
votes
2answers
289 views

problem with text formatting \ itemize

I looked for a command to improve the equation item and I met this one. \usepackage{amsmath} newcommand{\itemEq}[1]{% \begingroup% \setlength{\abovedisplayskip}{0pt}% \...
3
votes
1answer
103 views

Make text fall of a line

As a joke in a songbook I'm editing I want to make a phrase "fall of the line", letter by letter. I do remember a long time ago to have seen something like this in WikiBooks but can't find it again. ...
0
votes
1answer
1k views

Disable word break

How can I disable word breaks in the whole document? I don't want any of my words broken and hyphenated across 2 lines. I have tried to use the package: \usepackage[none]{hyphenat} But then my ...
3
votes
1answer
213 views

How to emulate this page style from the comic book Watchmen?

Basically, I want to create a page so that it looks like a "photograph" of a piece of paper (with text) over another piece of paper (also with text). Is this possible in LaTeX? If yes how? I have no ...
0
votes
2answers
140 views

problems with margins in textual minipages

I'm writing a restaurant menu and i have problems with the left margins of this page, in particular in the paragraph 'Wine'. If I omit \vfill, the code overlaps the two paragraphs but it puts them ...
0
votes
1answer
657 views

Placing a Text over another Text in Beamer

How can I place a text on top of another text in beamer? I want something like this but over text while the original text becomes transparent.
0
votes
1answer
284 views

A Single Command for Combining Text and Math?

I'm trying to add units to some quantities for my physics homework. Here's what I want: Normal Text Math Commands Allowed All Bold One command to accomplish the above For example, if I want to write ...

1
2 3 4 5