Format picture and text with TikZ and minipage












2















I want to format the upper part of my CV, but I have encountered two problems:




  1. I want to format the picture to be perfectly round and make sure the
    whole picture is within the frame. However, when I start touching the framing the picture "looses" its roundness.


  2. I want to format my header like the picture below: where I have a round picture to the left, then a box with my name and small text below. However, working with minipages I have not been able to produce the desired result.



enter image description here



Here is my working code at this moment:



documentclass[letterpaper,8 pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{graphicx}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{calc}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}

begin{document}
pagenumbering{gobble}
hfill
begin{minipage}[t]{5cm}
hspace*{-3cm}
begin{tikzpicture}[baseline=(frog.center),inner sep=0pt]
clip (0,0) circle (2cm) node (frog) {includegraphics[width=6cm]{frog.jpg}};
end{tikzpicture}
end{minipage}
hfill
begin{minipage}[t]{5cm}
vspace{-1.5cm} centerline{Huge textbf{My Name Here}}
end{minipage}
%hfill
begin{minipage}[t]{5cm}
vspace{0cm} hspace{-2cm}begin{tabular}{rl}
textsc{Email:} & My_eMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
end{minipage}

end{document}









share|improve this question




















  • 1





    Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

    – Ulrike Fischer
    Mar 13 at 20:56






  • 1





    Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

    – hpekristiansen
    Mar 13 at 21:12
















2















I want to format the upper part of my CV, but I have encountered two problems:




  1. I want to format the picture to be perfectly round and make sure the
    whole picture is within the frame. However, when I start touching the framing the picture "looses" its roundness.


  2. I want to format my header like the picture below: where I have a round picture to the left, then a box with my name and small text below. However, working with minipages I have not been able to produce the desired result.



enter image description here



Here is my working code at this moment:



documentclass[letterpaper,8 pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{graphicx}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{calc}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}

begin{document}
pagenumbering{gobble}
hfill
begin{minipage}[t]{5cm}
hspace*{-3cm}
begin{tikzpicture}[baseline=(frog.center),inner sep=0pt]
clip (0,0) circle (2cm) node (frog) {includegraphics[width=6cm]{frog.jpg}};
end{tikzpicture}
end{minipage}
hfill
begin{minipage}[t]{5cm}
vspace{-1.5cm} centerline{Huge textbf{My Name Here}}
end{minipage}
%hfill
begin{minipage}[t]{5cm}
vspace{0cm} hspace{-2cm}begin{tabular}{rl}
textsc{Email:} & My_eMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
end{minipage}

end{document}









share|improve this question




















  • 1





    Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

    – Ulrike Fischer
    Mar 13 at 20:56






  • 1





    Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

    – hpekristiansen
    Mar 13 at 21:12














2












2








2








I want to format the upper part of my CV, but I have encountered two problems:




  1. I want to format the picture to be perfectly round and make sure the
    whole picture is within the frame. However, when I start touching the framing the picture "looses" its roundness.


  2. I want to format my header like the picture below: where I have a round picture to the left, then a box with my name and small text below. However, working with minipages I have not been able to produce the desired result.



enter image description here



Here is my working code at this moment:



documentclass[letterpaper,8 pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{graphicx}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{calc}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}

begin{document}
pagenumbering{gobble}
hfill
begin{minipage}[t]{5cm}
hspace*{-3cm}
begin{tikzpicture}[baseline=(frog.center),inner sep=0pt]
clip (0,0) circle (2cm) node (frog) {includegraphics[width=6cm]{frog.jpg}};
end{tikzpicture}
end{minipage}
hfill
begin{minipage}[t]{5cm}
vspace{-1.5cm} centerline{Huge textbf{My Name Here}}
end{minipage}
%hfill
begin{minipage}[t]{5cm}
vspace{0cm} hspace{-2cm}begin{tabular}{rl}
textsc{Email:} & My_eMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
end{minipage}

end{document}









share|improve this question
















I want to format the upper part of my CV, but I have encountered two problems:




  1. I want to format the picture to be perfectly round and make sure the
    whole picture is within the frame. However, when I start touching the framing the picture "looses" its roundness.


  2. I want to format my header like the picture below: where I have a round picture to the left, then a box with my name and small text below. However, working with minipages I have not been able to produce the desired result.



enter image description here



Here is my working code at this moment:



documentclass[letterpaper,8 pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{graphicx}
usepackage{tikz}
usepackage{tikzpagenodes}
usetikzlibrary{calc}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}

begin{document}
pagenumbering{gobble}
hfill
begin{minipage}[t]{5cm}
hspace*{-3cm}
begin{tikzpicture}[baseline=(frog.center),inner sep=0pt]
clip (0,0) circle (2cm) node (frog) {includegraphics[width=6cm]{frog.jpg}};
end{tikzpicture}
end{minipage}
hfill
begin{minipage}[t]{5cm}
vspace{-1.5cm} centerline{Huge textbf{My Name Here}}
end{minipage}
%hfill
begin{minipage}[t]{5cm}
vspace{0cm} hspace{-2cm}begin{tabular}{rl}
textsc{Email:} & My_eMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
end{minipage}

end{document}






tikz-pgf minipage resume






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 at 20:55







Ola

















asked Mar 13 at 20:40









OlaOla

405




405








  • 1





    Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

    – Ulrike Fischer
    Mar 13 at 20:56






  • 1





    Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

    – hpekristiansen
    Mar 13 at 21:12














  • 1





    Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

    – Ulrike Fischer
    Mar 13 at 20:56






  • 1





    Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

    – hpekristiansen
    Mar 13 at 21:12








1




1





Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

– Ulrike Fischer
Mar 13 at 20:56





Make the graphic larger, e.g. includegraphics[width=8cm] then it will get round.

– Ulrike Fischer
Mar 13 at 20:56




1




1





Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

– hpekristiansen
Mar 13 at 21:12





Alexander Lightwood also asked about a round picture(and he also used a frog as an example). Maybe you can use something from his answers: tex.stackexchange.com/questions/466265/…

– hpekristiansen
Mar 13 at 21:12










1 Answer
1






active

oldest

votes


















5














Perhaps you could put everything in one tikzpicture. As you want the circle the same size as the box, it makes sense to make the box first, and then set the size of the circle to the same as the height of the box.



Note by the way that 8 pt is not a valid option for the article class, it doesn't do anything. 10pt (default), 11pt and 12pt are the ones available by default.



The outer frame in this screenshot comes from having added the showframe option to the the geometry package. With that option a frame is added around the text area.



enter image description here



documentclass[letterpaper,10pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{tikzpagenodes} % loads tikz which loads graphicx
usetikzlibrary{calc,positioning}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}
begin{document}
pagenumbering{gobble}
%hfill
noindenthfillbegin{tikzpicture}[
declare function={
boxwidth=textwidth-4cm; % you may need to change 4cm so something else, depending on the height of the box
boxinnersep=2mm;
}
]
node [
text width=boxwidth,
align=left,
draw,
fill=green!30,
inner sep=boxinnersep] (box) {%
{Huge textbf{My Name Here}} \[5pt]
begin{tabular}{rl}
textsc{Email:} & MyeMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
};

path
let
p1=(box.north),
p2=(box.south),
n1={y1-y2},
n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}
in
node [
minimum size=n1,
circle,
path picture={
node [anchor=center] {includegraphics[width=6cm]{example-image}};
},
left=n2 of box
] {};

end{tikzpicture}

end{document}





share|improve this answer


























  • Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

    – Ola
    Mar 13 at 21:21











  • @Ola Do you want to make the image smaller or the box higher?

    – Torbjørn T.
    Mar 13 at 21:24











  • Image smaller. Thanks for the swift replies!¨

    – Ola
    Mar 13 at 21:26











  • For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

    – John Kormylo
    Mar 13 at 21:56








  • 1





    @Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

    – Torbjørn T.
    Mar 13 at 22:28











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%2f479355%2fformat-picture-and-text-with-tikz-and-minipage%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









5














Perhaps you could put everything in one tikzpicture. As you want the circle the same size as the box, it makes sense to make the box first, and then set the size of the circle to the same as the height of the box.



Note by the way that 8 pt is not a valid option for the article class, it doesn't do anything. 10pt (default), 11pt and 12pt are the ones available by default.



The outer frame in this screenshot comes from having added the showframe option to the the geometry package. With that option a frame is added around the text area.



enter image description here



documentclass[letterpaper,10pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{tikzpagenodes} % loads tikz which loads graphicx
usetikzlibrary{calc,positioning}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}
begin{document}
pagenumbering{gobble}
%hfill
noindenthfillbegin{tikzpicture}[
declare function={
boxwidth=textwidth-4cm; % you may need to change 4cm so something else, depending on the height of the box
boxinnersep=2mm;
}
]
node [
text width=boxwidth,
align=left,
draw,
fill=green!30,
inner sep=boxinnersep] (box) {%
{Huge textbf{My Name Here}} \[5pt]
begin{tabular}{rl}
textsc{Email:} & MyeMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
};

path
let
p1=(box.north),
p2=(box.south),
n1={y1-y2},
n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}
in
node [
minimum size=n1,
circle,
path picture={
node [anchor=center] {includegraphics[width=6cm]{example-image}};
},
left=n2 of box
] {};

end{tikzpicture}

end{document}





share|improve this answer


























  • Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

    – Ola
    Mar 13 at 21:21











  • @Ola Do you want to make the image smaller or the box higher?

    – Torbjørn T.
    Mar 13 at 21:24











  • Image smaller. Thanks for the swift replies!¨

    – Ola
    Mar 13 at 21:26











  • For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

    – John Kormylo
    Mar 13 at 21:56








  • 1





    @Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

    – Torbjørn T.
    Mar 13 at 22:28
















5














Perhaps you could put everything in one tikzpicture. As you want the circle the same size as the box, it makes sense to make the box first, and then set the size of the circle to the same as the height of the box.



Note by the way that 8 pt is not a valid option for the article class, it doesn't do anything. 10pt (default), 11pt and 12pt are the ones available by default.



The outer frame in this screenshot comes from having added the showframe option to the the geometry package. With that option a frame is added around the text area.



enter image description here



documentclass[letterpaper,10pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{tikzpagenodes} % loads tikz which loads graphicx
usetikzlibrary{calc,positioning}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}
begin{document}
pagenumbering{gobble}
%hfill
noindenthfillbegin{tikzpicture}[
declare function={
boxwidth=textwidth-4cm; % you may need to change 4cm so something else, depending on the height of the box
boxinnersep=2mm;
}
]
node [
text width=boxwidth,
align=left,
draw,
fill=green!30,
inner sep=boxinnersep] (box) {%
{Huge textbf{My Name Here}} \[5pt]
begin{tabular}{rl}
textsc{Email:} & MyeMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
};

path
let
p1=(box.north),
p2=(box.south),
n1={y1-y2},
n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}
in
node [
minimum size=n1,
circle,
path picture={
node [anchor=center] {includegraphics[width=6cm]{example-image}};
},
left=n2 of box
] {};

end{tikzpicture}

end{document}





share|improve this answer


























  • Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

    – Ola
    Mar 13 at 21:21











  • @Ola Do you want to make the image smaller or the box higher?

    – Torbjørn T.
    Mar 13 at 21:24











  • Image smaller. Thanks for the swift replies!¨

    – Ola
    Mar 13 at 21:26











  • For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

    – John Kormylo
    Mar 13 at 21:56








  • 1





    @Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

    – Torbjørn T.
    Mar 13 at 22:28














5












5








5







Perhaps you could put everything in one tikzpicture. As you want the circle the same size as the box, it makes sense to make the box first, and then set the size of the circle to the same as the height of the box.



Note by the way that 8 pt is not a valid option for the article class, it doesn't do anything. 10pt (default), 11pt and 12pt are the ones available by default.



The outer frame in this screenshot comes from having added the showframe option to the the geometry package. With that option a frame is added around the text area.



enter image description here



documentclass[letterpaper,10pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{tikzpagenodes} % loads tikz which loads graphicx
usetikzlibrary{calc,positioning}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}
begin{document}
pagenumbering{gobble}
%hfill
noindenthfillbegin{tikzpicture}[
declare function={
boxwidth=textwidth-4cm; % you may need to change 4cm so something else, depending on the height of the box
boxinnersep=2mm;
}
]
node [
text width=boxwidth,
align=left,
draw,
fill=green!30,
inner sep=boxinnersep] (box) {%
{Huge textbf{My Name Here}} \[5pt]
begin{tabular}{rl}
textsc{Email:} & MyeMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
};

path
let
p1=(box.north),
p2=(box.south),
n1={y1-y2},
n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}
in
node [
minimum size=n1,
circle,
path picture={
node [anchor=center] {includegraphics[width=6cm]{example-image}};
},
left=n2 of box
] {};

end{tikzpicture}

end{document}





share|improve this answer















Perhaps you could put everything in one tikzpicture. As you want the circle the same size as the box, it makes sense to make the box first, and then set the size of the circle to the same as the height of the box.



Note by the way that 8 pt is not a valid option for the article class, it doesn't do anything. 10pt (default), 11pt and 12pt are the ones available by default.



The outer frame in this screenshot comes from having added the showframe option to the the geometry package. With that option a frame is added around the text area.



enter image description here



documentclass[letterpaper,10pt]{article}

usepackage{titlesec}
usepackage[margin=0.3in]{geometry}
usepackage{longtable}
usepackage{marvosym}
usepackage{amsmath}

usepackage{underscore}
renewcommand{familydefault}{sfdefault}
renewcommand{sfdefault}{ppl}

newcommand{at}{makeatletter @makeatother}
usepackage{tikzpagenodes} % loads tikz which loads graphicx
usetikzlibrary{calc,positioning}

titleformat{section}{largescshaperaggedright}{}{1em}{}[titlerule]
titlespacing{section}{0pt}{3pt}{3pt}
begin{document}
pagenumbering{gobble}
%hfill
noindenthfillbegin{tikzpicture}[
declare function={
boxwidth=textwidth-4cm; % you may need to change 4cm so something else, depending on the height of the box
boxinnersep=2mm;
}
]
node [
text width=boxwidth,
align=left,
draw,
fill=green!30,
inner sep=boxinnersep] (box) {%
{Huge textbf{My Name Here}} \[5pt]
begin{tabular}{rl}
textsc{Email:} & MyeMailat gmail.com \
textsc{Telefon:} & xxx xx xxx \
textsc{Sted:} & xxxx, xxxxx \
end{tabular}
};

path
let
p1=(box.north),
p2=(box.south),
n1={y1-y2},
n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}
in
node [
minimum size=n1,
circle,
path picture={
node [anchor=center] {includegraphics[width=6cm]{example-image}};
},
left=n2 of box
] {};

end{tikzpicture}

end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 13 at 22:33

























answered Mar 13 at 20:58









Torbjørn T.Torbjørn T.

158k13256445




158k13256445













  • Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

    – Ola
    Mar 13 at 21:21











  • @Ola Do you want to make the image smaller or the box higher?

    – Torbjørn T.
    Mar 13 at 21:24











  • Image smaller. Thanks for the swift replies!¨

    – Ola
    Mar 13 at 21:26











  • For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

    – John Kormylo
    Mar 13 at 21:56








  • 1





    @Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

    – Torbjørn T.
    Mar 13 at 22:28



















  • Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

    – Ola
    Mar 13 at 21:21











  • @Ola Do you want to make the image smaller or the box higher?

    – Torbjørn T.
    Mar 13 at 21:24











  • Image smaller. Thanks for the swift replies!¨

    – Ola
    Mar 13 at 21:26











  • For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

    – John Kormylo
    Mar 13 at 21:56








  • 1





    @Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

    – Torbjørn T.
    Mar 13 at 22:28

















Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

– Ola
Mar 13 at 21:21





Is it possible to format the picture as the same height as the box? And, is it possible to have the box cover the enitre width of the page?

– Ola
Mar 13 at 21:21













@Ola Do you want to make the image smaller or the box higher?

– Torbjørn T.
Mar 13 at 21:24





@Ola Do you want to make the image smaller or the box higher?

– Torbjørn T.
Mar 13 at 21:24













Image smaller. Thanks for the swift replies!¨

– Ola
Mar 13 at 21:26





Image smaller. Thanks for the swift replies!¨

– Ola
Mar 13 at 21:26













For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

– John Kormylo
Mar 13 at 21:56







For the width of the page, use text width={dimexpr textwidth - 4cm - 4mm}

– John Kormylo
Mar 13 at 21:56






1




1





@Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

– Torbjørn T.
Mar 13 at 22:28





@Ola For example you could change nodindent to noindenthfill, and make n2 smaller (e.g. divide by 2, n2={(textwidth-boxwidth-n1-2*boxinnersep-2pgflinewidth)/2}).

– Torbjørn T.
Mar 13 at 22:28


















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%2f479355%2fformat-picture-and-text-with-tikz-and-minipage%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 to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?