How to typeset a text like a beamer enumerate item, rectangle style












3















I would like to format a text so that it looks like an enumerate item.



In the example below, you can see that I would like a list that consists of the items 1,2,n. I would like the "n" to be typeset like the 1 and the 2, i.e. with a blue background.



documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[n] Item n
end{enumerate}
end{frame}
end{document}


Thanks!










share|improve this question























  • Welcome to TeX.Stackexchange!

    – samcarter
    Jan 31 at 17:26
















3















I would like to format a text so that it looks like an enumerate item.



In the example below, you can see that I would like a list that consists of the items 1,2,n. I would like the "n" to be typeset like the 1 and the 2, i.e. with a blue background.



documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[n] Item n
end{enumerate}
end{frame}
end{document}


Thanks!










share|improve this question























  • Welcome to TeX.Stackexchange!

    – samcarter
    Jan 31 at 17:26














3












3








3








I would like to format a text so that it looks like an enumerate item.



In the example below, you can see that I would like a list that consists of the items 1,2,n. I would like the "n" to be typeset like the 1 and the 2, i.e. with a blue background.



documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[n] Item n
end{enumerate}
end{frame}
end{document}


Thanks!










share|improve this question














I would like to format a text so that it looks like an enumerate item.



In the example below, you can see that I would like a list that consists of the items 1,2,n. I would like the "n" to be typeset like the 1 and the 2, i.e. with a blue background.



documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[n] Item n
end{enumerate}
end{frame}
end{document}


Thanks!







beamer enumerate






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 31 at 17:09









JanJan

161




161













  • Welcome to TeX.Stackexchange!

    – samcarter
    Jan 31 at 17:26



















  • Welcome to TeX.Stackexchange!

    – samcarter
    Jan 31 at 17:26

















Welcome to TeX.Stackexchange!

– samcarter
Jan 31 at 17:26





Welcome to TeX.Stackexchange!

– samcarter
Jan 31 at 17:26










1 Answer
1






active

oldest

votes


















4














documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]

newcommand{mysquare}[1]{
hbox{%
usebeamerfont*{item projected}%
usebeamercolor[bg]{item projected}%
vrule width2.25ex height1.85ex depth.4ex%
hskip-2.25ex%
hbox to2.25ex{%
hfil%
color{fg}#1%
hfil}%
}%
}


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[mysquare{n}] Item n
end{enumerate}
end{frame}
end{document}


enter image description here






share|improve this answer
























  • Thanks very much, works perfectly!

    – Jan
    Feb 1 at 16:20











  • A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

    – Jan
    Feb 1 at 16:22











  • @Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

    – samcarter
    Feb 1 at 16:25











  • OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

    – Jan
    Feb 5 at 16:24











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472759%2fhow-to-typeset-a-text-like-a-beamer-enumerate-item-rectangle-style%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]

newcommand{mysquare}[1]{
hbox{%
usebeamerfont*{item projected}%
usebeamercolor[bg]{item projected}%
vrule width2.25ex height1.85ex depth.4ex%
hskip-2.25ex%
hbox to2.25ex{%
hfil%
color{fg}#1%
hfil}%
}%
}


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[mysquare{n}] Item n
end{enumerate}
end{frame}
end{document}


enter image description here






share|improve this answer
























  • Thanks very much, works perfectly!

    – Jan
    Feb 1 at 16:20











  • A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

    – Jan
    Feb 1 at 16:22











  • @Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

    – samcarter
    Feb 1 at 16:25











  • OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

    – Jan
    Feb 5 at 16:24
















4














documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]

newcommand{mysquare}[1]{
hbox{%
usebeamerfont*{item projected}%
usebeamercolor[bg]{item projected}%
vrule width2.25ex height1.85ex depth.4ex%
hskip-2.25ex%
hbox to2.25ex{%
hfil%
color{fg}#1%
hfil}%
}%
}


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[mysquare{n}] Item n
end{enumerate}
end{frame}
end{document}


enter image description here






share|improve this answer
























  • Thanks very much, works perfectly!

    – Jan
    Feb 1 at 16:20











  • A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

    – Jan
    Feb 1 at 16:22











  • @Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

    – samcarter
    Feb 1 at 16:25











  • OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

    – Jan
    Feb 5 at 16:24














4












4








4







documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]

newcommand{mysquare}[1]{
hbox{%
usebeamerfont*{item projected}%
usebeamercolor[bg]{item projected}%
vrule width2.25ex height1.85ex depth.4ex%
hskip-2.25ex%
hbox to2.25ex{%
hfil%
color{fg}#1%
hfil}%
}%
}


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[mysquare{n}] Item n
end{enumerate}
end{frame}
end{document}


enter image description here






share|improve this answer













documentclass{beamer}


usetheme{Madrid}
useinnertheme{rectangles}
setbeamertemplate{blocks}[default]

newcommand{mysquare}[1]{
hbox{%
usebeamerfont*{item projected}%
usebeamercolor[bg]{item projected}%
vrule width2.25ex height1.85ex depth.4ex%
hskip-2.25ex%
hbox to2.25ex{%
hfil%
color{fg}#1%
hfil}%
}%
}


begin{document}
begin{frame}
begin{enumerate}
item Item one
item Item two
item[mysquare{n}] Item n
end{enumerate}
end{frame}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 31 at 17:25









samcartersamcarter

1




1













  • Thanks very much, works perfectly!

    – Jan
    Feb 1 at 16:20











  • A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

    – Jan
    Feb 1 at 16:22











  • @Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

    – samcarter
    Feb 1 at 16:25











  • OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

    – Jan
    Feb 5 at 16:24



















  • Thanks very much, works perfectly!

    – Jan
    Feb 1 at 16:20











  • A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

    – Jan
    Feb 1 at 16:22











  • @Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

    – samcarter
    Feb 1 at 16:25











  • OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

    – Jan
    Feb 5 at 16:24

















Thanks very much, works perfectly!

– Jan
Feb 1 at 16:20





Thanks very much, works perfectly!

– Jan
Feb 1 at 16:20













A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

– Jan
Feb 1 at 16:22





A little followup: How did you figure that out? Did you look into the beamer sourcecode, or is there another way to find out the formatting of a special piece of text?

– Jan
Feb 1 at 16:22













@Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

– samcarter
Feb 1 at 16:25





@Jan Source code. The original template for the enumeration with squares can be found in github.com/josephwright/beamer/blob/master/base/…

– samcarter
Feb 1 at 16:25













OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

– Jan
Feb 5 at 16:24





OK, so there is no easy way... Guess I'll have to come back here the next time I have a similar question ;-)

– Jan
Feb 5 at 16:24


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f472759%2fhow-to-typeset-a-text-like-a-beamer-enumerate-item-rectangle-style%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How do I know what Microsoft account the skydrive app is syncing to?

Grease: Live!

When does type information flow backwards in C++?