How to scale a verbatim environment on a minipage?How to scale a verbatim block in a user-defined...
Transfer over $10k
Junior developer struggles: how to communicate with management?
Why do money exchangers give different rates to different bills
Topological Spaces homeomorphic
If Earth is tilted, why is Polaris always above the same spot?
Does the Darkness spell dispel the Color Spray and Flaming Sphere spells?
Feels like I am getting dragged into office politics
How do I tell my manager that his code review comment is wrong?
If Melisandre foresaw another character closing blue eyes, why did she follow Stannis?
Why is Thanos so tough at the beginning of "Avengers: Endgame"?
Does hiding behind 5-ft-wide cover give full cover?
Can fracking help reduce CO2?
How to efficiently calculate prefix sum of frequencies of characters in a string?
What happened to Ghost?
How to scale a verbatim environment on a minipage?
Any examples of headwear for races with animal ears?
What was the state of the German rail system in 1944?
How did Arya manage to disguise herself?
How could a planet have most of its water in the atmosphere?
If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?
Pressure to defend the relevance of one's area of mathematics
Is balancing necessary on a full-wheel change?
What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?
Power LED from 3.3V Power Pin without Resistor
How to scale a verbatim environment on a minipage?
How to scale a verbatim block in a user-defined environment?Typewriter font for math symbols (∃, ∀) in scaled verbatim environment for pdflatexDisplaying `begin{verbatim}…end{verbatim}` inside the environment verbatimminted Environment Inside minipage EnvironmentVerbatim environment with catchfilebetweentags packageverbatim environment fails on ' and `?minipage with verbatim package doesn't compileHighlight text in verbatim environmentMultiple line verbatim environmentHow show line in Verbatim environment?Fraction in verbatim environmentRoot in verbatim environment
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclass{article}
usepackage{amsmath}
usepackage{lipsum, caption}
begin{document}
begin{figure}[!b]
centering
begin{minipage}[b]{0.5linewidth}
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
end{document}
The minibox is simple to understand so i used it.
minipage verbatim scale
add a comment |
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclass{article}
usepackage{amsmath}
usepackage{lipsum, caption}
begin{document}
begin{figure}[!b]
centering
begin{minipage}[b]{0.5linewidth}
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
end{document}
The minibox is simple to understand so i used it.
minipage verbatim scale
The linked answers seem to provide a solution and you forgot to putusepackage{caption}
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclass{article}
usepackage{amsmath}
usepackage{lipsum, caption}
begin{document}
begin{figure}[!b]
centering
begin{minipage}[b]{0.5linewidth}
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
end{document}
The minibox is simple to understand so i used it.
minipage verbatim scale
I have a plain vebatim environment. Questions 1, 2 are too complex to understand. I would simply like to align in the center and rescale the ascii art logo.
MWE:
documentclass{article}
usepackage{amsmath}
usepackage{lipsum, caption}
begin{document}
begin{figure}[!b]
centering
begin{minipage}[b]{0.5linewidth}
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbatim}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbatim}
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
end{document}
The minibox is simple to understand so i used it.
minipage verbatim scale
minipage verbatim scale
edited 3 hours ago
ItsmeJulian
asked 3 hours ago
ItsmeJulianItsmeJulian
252212
252212
The linked answers seem to provide a solution and you forgot to putusepackage{caption}
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
The linked answers seem to provide a solution and you forgot to putusepackage{caption}
.
– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
The linked answers seem to provide a solution and you forgot to put
usepackage{caption}
.– marmot
3 hours ago
The linked answers seem to provide a solution and you forgot to put
usepackage{caption}
.– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
verbatimbox
can help.
documentclass{article}
usepackage{amsmath,verbatimbox}
usepackage{lipsum, caption}
usepackage[showframe,pass]{geometry}
begin{document}
begin{figure}[ht]
centering smallskip
begin{verbbox}[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
begin{minipage}[b]{0.5linewidth}
theverbbox
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbbox}[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
begin{figure}[ht]
centering
begin{verbbox}[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
caption{Here is my scaled verbatim}
end{figure}
end{document}
add a comment |
Using your second link I got these results
documentclass[9pt]{article}
usepackage{amsmath,adjustbox,fancyvrb,caption}
usepackage{lipsum}
newenvironment{myverb}{%
VerbatimEnvironment
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
}{
end{BVerbatim}
end{adjustbox}
}
begin{document}
begin{figure}[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Huge 1}
label{interpt2}
end{figure}
vspace{0.5cm}
begin{figure}[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Tiny 2}
label{interpt2}
end{figure}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488327%2fhow-to-scale-a-verbatim-environment-on-a-minipage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
verbatimbox
can help.
documentclass{article}
usepackage{amsmath,verbatimbox}
usepackage{lipsum, caption}
usepackage[showframe,pass]{geometry}
begin{document}
begin{figure}[ht]
centering smallskip
begin{verbbox}[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
begin{minipage}[b]{0.5linewidth}
theverbbox
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbbox}[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
begin{figure}[ht]
centering
begin{verbbox}[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
caption{Here is my scaled verbatim}
end{figure}
end{document}
add a comment |
verbatimbox
can help.
documentclass{article}
usepackage{amsmath,verbatimbox}
usepackage{lipsum, caption}
usepackage[showframe,pass]{geometry}
begin{document}
begin{figure}[ht]
centering smallskip
begin{verbbox}[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
begin{minipage}[b]{0.5linewidth}
theverbbox
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbbox}[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
begin{figure}[ht]
centering
begin{verbbox}[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
caption{Here is my scaled verbatim}
end{figure}
end{document}
add a comment |
verbatimbox
can help.
documentclass{article}
usepackage{amsmath,verbatimbox}
usepackage{lipsum, caption}
usepackage[showframe,pass]{geometry}
begin{document}
begin{figure}[ht]
centering smallskip
begin{verbbox}[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
begin{minipage}[b]{0.5linewidth}
theverbbox
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbbox}[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
begin{figure}[ht]
centering
begin{verbbox}[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
caption{Here is my scaled verbatim}
end{figure}
end{document}
verbatimbox
can help.
documentclass{article}
usepackage{amsmath,verbatimbox}
usepackage{lipsum, caption}
usepackage[showframe,pass]{geometry}
begin{document}
begin{figure}[ht]
centering smallskip
begin{verbbox}[small]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
begin{minipage}[b]{0.5linewidth}
theverbbox
captionof{figure}{logo1}
label{interpt1}
end{minipage}hspace*{5mm}
begin{minipage}[b]{0.3linewidth}
centering
begin{verbbox}[tiny]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
captionof{figure}{logo2}
label{interpt2}
end{minipage}
end{figure}
begin{figure}[ht]
centering
begin{verbbox}[LARGE]
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{verbbox}
theverbbox
caption{Here is my scaled verbatim}
end{figure}
end{document}
answered 3 hours ago
Steven B. SegletesSteven B. Segletes
163k9209421
163k9209421
add a comment |
add a comment |
Using your second link I got these results
documentclass[9pt]{article}
usepackage{amsmath,adjustbox,fancyvrb,caption}
usepackage{lipsum}
newenvironment{myverb}{%
VerbatimEnvironment
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
}{
end{BVerbatim}
end{adjustbox}
}
begin{document}
begin{figure}[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Huge 1}
label{interpt2}
end{figure}
vspace{0.5cm}
begin{figure}[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Tiny 2}
label{interpt2}
end{figure}
end{document}
add a comment |
Using your second link I got these results
documentclass[9pt]{article}
usepackage{amsmath,adjustbox,fancyvrb,caption}
usepackage{lipsum}
newenvironment{myverb}{%
VerbatimEnvironment
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
}{
end{BVerbatim}
end{adjustbox}
}
begin{document}
begin{figure}[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Huge 1}
label{interpt2}
end{figure}
vspace{0.5cm}
begin{figure}[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Tiny 2}
label{interpt2}
end{figure}
end{document}
add a comment |
Using your second link I got these results
documentclass[9pt]{article}
usepackage{amsmath,adjustbox,fancyvrb,caption}
usepackage{lipsum}
newenvironment{myverb}{%
VerbatimEnvironment
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
}{
end{BVerbatim}
end{adjustbox}
}
begin{document}
begin{figure}[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Huge 1}
label{interpt2}
end{figure}
vspace{0.5cm}
begin{figure}[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Tiny 2}
label{interpt2}
end{figure}
end{document}
Using your second link I got these results
documentclass[9pt]{article}
usepackage{amsmath,adjustbox,fancyvrb,caption}
usepackage{lipsum}
newenvironment{myverb}{%
VerbatimEnvironment
begin{adjustbox}{max width=linewidth}
begin{BVerbatim}
}{
end{BVerbatim}
end{adjustbox}
}
begin{document}
begin{figure}[!h]centering Huge % huge LARGE Large large these are case sensitive simply move the % comment to the right for smaller
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Huge 1}
label{interpt2}
end{figure}
vspace{0.5cm}
begin{figure}[!h]centering small footnotesize scriptsize tiny %these are case sensitive simply move the % comment to the left for larger
begin{myverb}
__ ____ _ __ ________
/ |/ (_)__ (_) / / __/ __/
/ /|_/ / / _ / / /___ _
/_/ /_/_/_//_/_/____/___/___/
end{myverb}
captionof{figure}{Tiny 2}
label{interpt2}
end{figure}
end{document}
answered 2 hours ago
KJOKJO
4,2251324
4,2251324
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f488327%2fhow-to-scale-a-verbatim-environment-on-a-minipage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The linked answers seem to provide a solution and you forgot to put
usepackage{caption}
.– marmot
3 hours ago
they entangle things, i do not have userdefined env. and no special symbols. its hard to see (so for other newbies)
– ItsmeJulian
3 hours ago