Latex trimbox figure? Announcing the arrival of Valued Associate #679: Cesar Manara ...
Why aren't road bicycle wheels tiny?
Simulate round-robin tournament draw
Suing a Police Officer Instead of the Police Department
Has a Nobel Peace laureate ever been accused of war crimes?
How to keep bees out of canned beverages?
Bright yellow or light yellow?
What does the black goddess statue do and what is it?
Is there a possibility to generate a list dynamically in Latex?
Processing ADC conversion result: DMA vs Processor Registers
Variable does not exist: sObjectType (Task.sObjectType)
Will I be more secure with my own router behind my ISP's router?
/bin/ls sorts differently than just ls
Why would the Overseers waste their stock of slaves on the Game?
Why did Israel vote against lifting the American embargo on Cuba?
How to compute a Jacobian using polar coordinates?
Why I cannot instantiate a class whose constructor is private in a friend class?
Protagonist's race is hidden - should I reveal it?
What's called a person who works as someone who puts products on shelves in stores?
Is it accepted to use working hours to read general interest books?
RIP Packet Format
What helicopter has the most rotor blades?
Married in secret, can marital status in passport be changed at a later date?
How did Elite on the NES work?
How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?
Latex trimbox figure?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
I wonder if it is possible to have a trim box in latex that can trim figures?
For example using latex trim, I know it's possible for example to trim the top of a figure (see left figure down below). Now suppose I don't want to trim the full width of the top but maybe just 50 % of the width from the top (see figure to the right down below). Is it possible to do this?
includegraphics[trim={0 0 1cm 0},clip]{duck.png}

trimbox
add a comment |
I wonder if it is possible to have a trim box in latex that can trim figures?
For example using latex trim, I know it's possible for example to trim the top of a figure (see left figure down below). Now suppose I don't want to trim the full width of the top but maybe just 50 % of the width from the top (see figure to the right down below). Is it possible to do this?
includegraphics[trim={0 0 1cm 0},clip]{duck.png}

trimbox
1
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago
add a comment |
I wonder if it is possible to have a trim box in latex that can trim figures?
For example using latex trim, I know it's possible for example to trim the top of a figure (see left figure down below). Now suppose I don't want to trim the full width of the top but maybe just 50 % of the width from the top (see figure to the right down below). Is it possible to do this?
includegraphics[trim={0 0 1cm 0},clip]{duck.png}

trimbox
I wonder if it is possible to have a trim box in latex that can trim figures?
For example using latex trim, I know it's possible for example to trim the top of a figure (see left figure down below). Now suppose I don't want to trim the full width of the top but maybe just 50 % of the width from the top (see figure to the right down below). Is it possible to do this?
includegraphics[trim={0 0 1cm 0},clip]{duck.png}

trimbox
trimbox
asked 10 hours ago
TurbotantenTurbotanten
1255
1255
1
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago
add a comment |
1
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago
1
1
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago
add a comment |
1 Answer
1
active
oldest
votes
You can use tikz to clip it:
documentclass{article}
usepackage{tikz,graphicx}
begin{document}
newsaveboxmybox
saveboxmybox{includegraphics[width=10cm]{example-image-duck}}
begin{tikzpicture}
clip(0,0)--++(0,htmybox)--++(0.5wdmybox,0)--++(0,-1cm)--++(0.5wdmybox,0)--++(0,-htmybox+1cm)--cycle;
node[inner sep=0pt,anchor=south west]{useboxmybox};
end{tikzpicture}
end{document}

Could you explain what the options inclipcommand does?
– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
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%2f486204%2flatex-trimbox-figure%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
You can use tikz to clip it:
documentclass{article}
usepackage{tikz,graphicx}
begin{document}
newsaveboxmybox
saveboxmybox{includegraphics[width=10cm]{example-image-duck}}
begin{tikzpicture}
clip(0,0)--++(0,htmybox)--++(0.5wdmybox,0)--++(0,-1cm)--++(0.5wdmybox,0)--++(0,-htmybox+1cm)--cycle;
node[inner sep=0pt,anchor=south west]{useboxmybox};
end{tikzpicture}
end{document}

Could you explain what the options inclipcommand does?
– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
add a comment |
You can use tikz to clip it:
documentclass{article}
usepackage{tikz,graphicx}
begin{document}
newsaveboxmybox
saveboxmybox{includegraphics[width=10cm]{example-image-duck}}
begin{tikzpicture}
clip(0,0)--++(0,htmybox)--++(0.5wdmybox,0)--++(0,-1cm)--++(0.5wdmybox,0)--++(0,-htmybox+1cm)--cycle;
node[inner sep=0pt,anchor=south west]{useboxmybox};
end{tikzpicture}
end{document}

Could you explain what the options inclipcommand does?
– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
add a comment |
You can use tikz to clip it:
documentclass{article}
usepackage{tikz,graphicx}
begin{document}
newsaveboxmybox
saveboxmybox{includegraphics[width=10cm]{example-image-duck}}
begin{tikzpicture}
clip(0,0)--++(0,htmybox)--++(0.5wdmybox,0)--++(0,-1cm)--++(0.5wdmybox,0)--++(0,-htmybox+1cm)--cycle;
node[inner sep=0pt,anchor=south west]{useboxmybox};
end{tikzpicture}
end{document}

You can use tikz to clip it:
documentclass{article}
usepackage{tikz,graphicx}
begin{document}
newsaveboxmybox
saveboxmybox{includegraphics[width=10cm]{example-image-duck}}
begin{tikzpicture}
clip(0,0)--++(0,htmybox)--++(0.5wdmybox,0)--++(0,-1cm)--++(0.5wdmybox,0)--++(0,-htmybox+1cm)--cycle;
node[inner sep=0pt,anchor=south west]{useboxmybox};
end{tikzpicture}
end{document}

answered 10 hours ago
Ulrike FischerUlrike Fischer
201k9307693
201k9307693
Could you explain what the options inclipcommand does?
– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
add a comment |
Could you explain what the options inclipcommand does?
– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
Could you explain what the options in
clip command does?– Turbotanten
10 hours ago
Could you explain what the options in
clip command does?– Turbotanten
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
I'm simply drawing the path for the clip (and use the height and width of the box).
– Ulrike Fischer
10 hours ago
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%2f486204%2flatex-trimbox-figure%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
1
I don't think you can trim only part of the image. However, you can put something else on top - another image, or some sort of frame, or text with a white background - so that part of the image is not visible.
– Marijn
10 hours ago