Questions tagged [verbatim]
41 questions
49
votes
4 answers
How to not-analyze in ElasticSearch?
I've got a field in an ElasticSearch field which I do not want to have analyzed, i. e. it should be stored and compared verbatim. The values will contain letters, numbers, whitespace, dashes, slashes and maybe other characters.
If I do not give an…

Alfe
- 56,346
- 20
- 107
- 159
20
votes
1 answer
Latex: how to draw box around text that contains a verbatim block
Typically, to box in some text, I use the following:
\fbox {
\parbox{\linewidth}{
This is some text! Blah blah blah...
}
}
However, say I have a verbatim block within that. It will never compile. Anyone know how I could draw a box…

well actually
- 11,810
- 19
- 52
- 70
11
votes
3 answers
Verbatim string literals v escape sequences
Is there any difference in how the C# compiler or .NET run-time handles verbatim string literals versus using escape sequences (i.e. performance) or is it just a matter of design time style? E.G.:
var pathA = "c:\\somewhere";
var pathB =…

Tom Hundley
- 1,325
- 9
- 14
8
votes
3 answers
Latex two captioned verbatim environments side-by-side
How to get two verbatim environments inside floats with automatic captioning side-by-side?
\usepackage{float,fancyvrb}
...
\DefineVerbatimEnvironment{filecontents}{Verbatim}%
{fontsize=\small,
fontfamily=tt,
gobble=4,
…

Egon
- 1,705
- 18
- 32
7
votes
6 answers
how write this in verbatim latex
i have a little question about the verbatim environment in latex.....
my problem is how can i write "\end{verbatim}" inside of a verbatim environment, it supposed that everything inside a verbatim is written just like it looks but this is the string…

mjsr
- 7,410
- 18
- 57
- 83
7
votes
5 answers
Using Unicode in fancyvrb’s VerbatimOut
Problem
VerbatimOut from the “fancyvrb” package doesn’t play nicely with UTF-8 characters.
Minimal working…

Konrad Rudolph
- 530,221
- 131
- 937
- 1,214
6
votes
2 answers
Bash printf literal verbatim string
To make my code portable, I try to use printf rather than echo. But then
printf "-dogs-cats"
returns an error. A workaround in the present case is:
printf "-";printf "dogs-cats"
But is there a general, portable command (or an option with printf)…

Jacob Wegelin
- 1,304
- 11
- 16
5
votes
1 answer
How to force Console.WriteLine() to print verbatim strings?
Possible Duplicate:
Can I convert a C# string value to an escaped string literal
How can I print a string (via Console.WriteLine()) such that any/all escape sequences that may exist in the string is printed verbatim?
Example:
string s = "This…

Jed
- 10,649
- 19
- 81
- 125
5
votes
0 answers
code chunk following verbatim inline code breaks slide separator
In a xaringan presentation I want to show how to put R Code in an R Markdown document. Which leads me to the dangerous waters of verbatim R Markdown in an xaringan (R Markdown) document.
Displaying verbatim inline code works as long as there is no R…

rnuske
- 83
- 7
5
votes
1 answer
Advanced table in LaTeX with multiline cells
I'm trying to achieve something like this in LaTeX: http://sorenhaagerup.dk/files/table-sample.pdf (sample made in OpenOffice.org)
The most important part is the multiline verbatim-environment inside a cell. Is this possible at all?
I will be very…

Søren Haagerup
- 377
- 1
- 4
- 11
4
votes
1 answer
why is this verbatim string not working as I expect for a unit test assert and showing a strange value in debugger?
QUESTION: Why does the debugger show "directagents\a\aanodide" instead of the value of the verbatim string @"directagents\aanodide".
UPDATE
This seems to be a ReSharper quirk.
To Reproduce:
Enter a literal string with a "\a" in it.
Apply the…

Aaron Anodide
- 16,906
- 15
- 62
- 121
4
votes
0 answers
Twig: Render block multiple times: parsed, escaped, verbatim
I’m building a pattern library that displays my production twig partials with some additional information. Under each pattern, I want to have two code snippets that I want to be generated from my pattern. One is the parsed HTML, the other one is my…

Jannis Borgers
- 41
- 2
4
votes
1 answer
C# verbatim string literal not working. Very Strange backslash always double
I've tried for quite a long time to figure out whats going on but I've not found anything anywhere that someone besides me has ran into this issue.
I'm simply trying to hard code a path into a string. Easy stuff. Well for some reason
string…

Mike
- 419
- 1
- 6
- 22
4
votes
5 answers
new to C# - unable to get File.Copy to work
This is a code sample from Microsoft, with a different file location, that just won't work:
string fileName = "test1.txt";
string sourcePath = @"C:\";
string targetPath = @"C:\Test\";
// Use Path class to manipulate file and directory paths.
…

MariusD
- 129
- 1
- 2
- 14
3
votes
1 answer
How to fold verbatim text (not code) in R bookdown?
In my document, I want to show some info, using ``` block, such as:
```
bruin@c7 ~ $ cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
bruin@c7 ~ $
```
For large output chunks, I want to fold them. How to do that? Searching the web it…

bruin
- 979
- 1
- 10
- 30