How to typeset a code in LaTeX for the following image
Clash Royale CLAN TAG#URR8PPP
I want to typeset the following image in LaTeX. Is it possible?
formatting
add a comment |
I want to typeset the following image in LaTeX. Is it possible?
formatting
5
Of course it is possible to do:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?
– manooooh
Mar 10 at 12:08
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
1
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42
add a comment |
I want to typeset the following image in LaTeX. Is it possible?
formatting
I want to typeset the following image in LaTeX. Is it possible?
formatting
formatting
edited Mar 10 at 15:47
Sebastiano
11.2k42166
11.2k42166
asked Mar 10 at 11:50
Sachchidanand PrasadSachchidanand Prasad
1355
1355
5
Of course it is possible to do:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?
– manooooh
Mar 10 at 12:08
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
1
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42
add a comment |
5
Of course it is possible to do:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?
– manooooh
Mar 10 at 12:08
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
1
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42
5
5
Of course it is possible to do
:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?– manooooh
Mar 10 at 12:08
Of course it is possible to do
:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?– manooooh
Mar 10 at 12:08
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
1
1
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42
add a comment |
2 Answers
2
active
oldest
votes
Maybe you're thinking to something like this:
documentclassarticle
usepackageamsmath
usepackagegraphicx
usepackagelipsum % for mock text
newenvironmentstep[2]
%
$% start math mode
sbox0rotatebox[origin=c]90quad#1quad%
vcenterhboxcopy0%
mkern3mu
beginpmatrix
mkern3mu
vphantomvcenterhboxcopy0%
beginminipage#2
endminipagemkern3muendpmatrix$
begindocument
begincenter
beginstepStep 18cm
lipsum[1][1-5]
endstep
endcenter
begincenter
beginstepStep 210cm
lipsum[2]
endstep
endcenter
enddocument
Is there a correlation with this link for the question:-)
? tex.stackexchange.com/questions/227292/…
– Sebastiano
Mar 10 at 20:40
add a comment |
With a tcolorbox
:
documentclassbook
usepackagelipsum
usepackagexcolor
%usepackageshowframe
usepackage[most]tcolorbox
newtcolorboxmybox[2]%
enhanced,
boxsep=4pt,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
left skip=.7cm,
% copied from https://tex.stackexchange.com/a/431760/101651
overlay unbroken and first =%
node[rotate=90,
anchor=south,
font=Large,
inner sep=0pt,
yshift=.3cm,
]
at (frame.west) #2;
draw[rounded corners=10, thick] ([xshift=12pt]frame.north west) -- (frame.north west) -- (frame.south west) -- ([xshift=12pt]frame.south west);
draw[rounded corners=10, thick] ([xshift=-12pt]frame.north east) -- (frame.north east) -- (frame.south east) -- ([xshift=-12pt]frame.south east);
begindocument
beginmyboxSTEP 1
Bla bla bla
endmybox
beginmyboxSTEP 2
lipsum[2]
endmybox
enddocument
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
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%2f478717%2fhow-to-typeset-a-code-in-latex-for-the-following-image%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
Maybe you're thinking to something like this:
documentclassarticle
usepackageamsmath
usepackagegraphicx
usepackagelipsum % for mock text
newenvironmentstep[2]
%
$% start math mode
sbox0rotatebox[origin=c]90quad#1quad%
vcenterhboxcopy0%
mkern3mu
beginpmatrix
mkern3mu
vphantomvcenterhboxcopy0%
beginminipage#2
endminipagemkern3muendpmatrix$
begindocument
begincenter
beginstepStep 18cm
lipsum[1][1-5]
endstep
endcenter
begincenter
beginstepStep 210cm
lipsum[2]
endstep
endcenter
enddocument
Is there a correlation with this link for the question:-)
? tex.stackexchange.com/questions/227292/…
– Sebastiano
Mar 10 at 20:40
add a comment |
Maybe you're thinking to something like this:
documentclassarticle
usepackageamsmath
usepackagegraphicx
usepackagelipsum % for mock text
newenvironmentstep[2]
%
$% start math mode
sbox0rotatebox[origin=c]90quad#1quad%
vcenterhboxcopy0%
mkern3mu
beginpmatrix
mkern3mu
vphantomvcenterhboxcopy0%
beginminipage#2
endminipagemkern3muendpmatrix$
begindocument
begincenter
beginstepStep 18cm
lipsum[1][1-5]
endstep
endcenter
begincenter
beginstepStep 210cm
lipsum[2]
endstep
endcenter
enddocument
Is there a correlation with this link for the question:-)
? tex.stackexchange.com/questions/227292/…
– Sebastiano
Mar 10 at 20:40
add a comment |
Maybe you're thinking to something like this:
documentclassarticle
usepackageamsmath
usepackagegraphicx
usepackagelipsum % for mock text
newenvironmentstep[2]
%
$% start math mode
sbox0rotatebox[origin=c]90quad#1quad%
vcenterhboxcopy0%
mkern3mu
beginpmatrix
mkern3mu
vphantomvcenterhboxcopy0%
beginminipage#2
endminipagemkern3muendpmatrix$
begindocument
begincenter
beginstepStep 18cm
lipsum[1][1-5]
endstep
endcenter
begincenter
beginstepStep 210cm
lipsum[2]
endstep
endcenter
enddocument
Maybe you're thinking to something like this:
documentclassarticle
usepackageamsmath
usepackagegraphicx
usepackagelipsum % for mock text
newenvironmentstep[2]
%
$% start math mode
sbox0rotatebox[origin=c]90quad#1quad%
vcenterhboxcopy0%
mkern3mu
beginpmatrix
mkern3mu
vphantomvcenterhboxcopy0%
beginminipage#2
endminipagemkern3muendpmatrix$
begindocument
begincenter
beginstepStep 18cm
lipsum[1][1-5]
endstep
endcenter
begincenter
beginstepStep 210cm
lipsum[2]
endstep
endcenter
enddocument
answered Mar 10 at 17:28
egregegreg
732k8919303254
732k8919303254
Is there a correlation with this link for the question:-)
? tex.stackexchange.com/questions/227292/…
– Sebastiano
Mar 10 at 20:40
add a comment |
Is there a correlation with this link for the question:-)
? tex.stackexchange.com/questions/227292/…
– Sebastiano
Mar 10 at 20:40
Is there a correlation with this link for the question
:-)
? tex.stackexchange.com/questions/227292/…– Sebastiano
Mar 10 at 20:40
Is there a correlation with this link for the question
:-)
? tex.stackexchange.com/questions/227292/…– Sebastiano
Mar 10 at 20:40
add a comment |
With a tcolorbox
:
documentclassbook
usepackagelipsum
usepackagexcolor
%usepackageshowframe
usepackage[most]tcolorbox
newtcolorboxmybox[2]%
enhanced,
boxsep=4pt,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
left skip=.7cm,
% copied from https://tex.stackexchange.com/a/431760/101651
overlay unbroken and first =%
node[rotate=90,
anchor=south,
font=Large,
inner sep=0pt,
yshift=.3cm,
]
at (frame.west) #2;
draw[rounded corners=10, thick] ([xshift=12pt]frame.north west) -- (frame.north west) -- (frame.south west) -- ([xshift=12pt]frame.south west);
draw[rounded corners=10, thick] ([xshift=-12pt]frame.north east) -- (frame.north east) -- (frame.south east) -- ([xshift=-12pt]frame.south east);
begindocument
beginmyboxSTEP 1
Bla bla bla
endmybox
beginmyboxSTEP 2
lipsum[2]
endmybox
enddocument
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
add a comment |
With a tcolorbox
:
documentclassbook
usepackagelipsum
usepackagexcolor
%usepackageshowframe
usepackage[most]tcolorbox
newtcolorboxmybox[2]%
enhanced,
boxsep=4pt,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
left skip=.7cm,
% copied from https://tex.stackexchange.com/a/431760/101651
overlay unbroken and first =%
node[rotate=90,
anchor=south,
font=Large,
inner sep=0pt,
yshift=.3cm,
]
at (frame.west) #2;
draw[rounded corners=10, thick] ([xshift=12pt]frame.north west) -- (frame.north west) -- (frame.south west) -- ([xshift=12pt]frame.south west);
draw[rounded corners=10, thick] ([xshift=-12pt]frame.north east) -- (frame.north east) -- (frame.south east) -- ([xshift=-12pt]frame.south east);
begindocument
beginmyboxSTEP 1
Bla bla bla
endmybox
beginmyboxSTEP 2
lipsum[2]
endmybox
enddocument
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
add a comment |
With a tcolorbox
:
documentclassbook
usepackagelipsum
usepackagexcolor
%usepackageshowframe
usepackage[most]tcolorbox
newtcolorboxmybox[2]%
enhanced,
boxsep=4pt,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
left skip=.7cm,
% copied from https://tex.stackexchange.com/a/431760/101651
overlay unbroken and first =%
node[rotate=90,
anchor=south,
font=Large,
inner sep=0pt,
yshift=.3cm,
]
at (frame.west) #2;
draw[rounded corners=10, thick] ([xshift=12pt]frame.north west) -- (frame.north west) -- (frame.south west) -- ([xshift=12pt]frame.south west);
draw[rounded corners=10, thick] ([xshift=-12pt]frame.north east) -- (frame.north east) -- (frame.south east) -- ([xshift=-12pt]frame.south east);
begindocument
beginmyboxSTEP 1
Bla bla bla
endmybox
beginmyboxSTEP 2
lipsum[2]
endmybox
enddocument
With a tcolorbox
:
documentclassbook
usepackagelipsum
usepackagexcolor
%usepackageshowframe
usepackage[most]tcolorbox
newtcolorboxmybox[2]%
enhanced,
boxsep=4pt,
opacityback=0,
frame hidden,% from https://tex.stackexchange.com/a/247509/101651
left skip=.7cm,
% copied from https://tex.stackexchange.com/a/431760/101651
overlay unbroken and first =%
node[rotate=90,
anchor=south,
font=Large,
inner sep=0pt,
yshift=.3cm,
]
at (frame.west) #2;
draw[rounded corners=10, thick] ([xshift=12pt]frame.north west) -- (frame.north west) -- (frame.south west) -- ([xshift=12pt]frame.south west);
draw[rounded corners=10, thick] ([xshift=-12pt]frame.north east) -- (frame.north east) -- (frame.south east) -- ([xshift=-12pt]frame.south east);
begindocument
beginmyboxSTEP 1
Bla bla bla
endmybox
beginmyboxSTEP 2
lipsum[2]
endmybox
enddocument
answered Mar 10 at 19:08
CarLaTeXCarLaTeX
34.4k552141
34.4k552141
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
add a comment |
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
Ohh I like how the braces bend in "Step 1" <3.
– manooooh
Mar 10 at 19:12
1
1
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
@manooooh It's the same of step 2 :)
– CarLaTeX
Mar 10 at 19:15
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%2f478717%2fhow-to-typeset-a-code-in-latex-for-the-following-image%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
5
Of course it is possible to do
:)
. 1) "Bla Bla ..." is the exact text that we have to add or do you mean another thing? 2) What have you tried so far? Could you add a MWE, please?– manooooh
Mar 10 at 12:08
Sir, I don't have any idea how to do this. That is why I asked.
– Sachchidanand Prasad
Mar 10 at 16:40
@SachchidanandPrasad You have an alternative with my code below (1 answer).
– Sebastiano
Mar 10 at 16:50
1
@Sebastiano Thanks for the help.
– Sachchidanand Prasad
Mar 10 at 16:53
@SachchidanandPrasad I have deleted my answer because is the bad than the two best now answers.
– Sebastiano
Mar 10 at 20:42