Latex trimbox figure?

Is there really no use for MD5 anymore?

Initiative: Do I lose my attack/action if my target moves or dies before my turn in combat?

Contradiction proof for inequality of P and NP?

Elements other than carbon that can form many different compounds by bonding to themselves?

A ​Note ​on ​N!

Function pointer with named arguments?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

What's the polite way to say "I need to urinate"?

What is the philosophical significance of speech acts/implicature?

What are the steps to solving this definite integral?

As an international instructor, should I openly talk about my accent?

How to fry ground beef so it is well-browned

Which big number is bigger?

How did Captain America manage to do this?

Is Diceware more secure than a long passphrase?

Rivers without rain

Who was the lone kid in the line of people at the lake at the end of Avengers: Endgame?

Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?

Map of water taps to fill bottles

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

How do I check if a string is entirely made of the same substring?

Re-entry to Germany after vacation using blue card

Can I grease a crank spindle/bracket without disassembling the crank set?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?



Latex trimbox figure?














2















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


enter image description here










share|improve this question

















  • 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
    Apr 23 at 13:42















2















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


enter image description here










share|improve this question

















  • 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
    Apr 23 at 13:42













2












2








2








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


enter image description here










share|improve this question














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


enter image description here







trimbox






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 23 at 13:28









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
    Apr 23 at 13:42












  • 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
    Apr 23 at 13:42







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
Apr 23 at 13:42





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
Apr 23 at 13:42










1 Answer
1






active

oldest

votes


















7














You can use tikz to clip it:



documentclassarticle
usepackagetikz,graphicx
begindocument
newsaveboxmybox
saveboxmyboxincludegraphics[width=10cm]example-image-duck
begintikzpicture
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;
endtikzpicture


enddocument


enter image description here






share|improve this answer























  • Could you explain what the options in clip command does?

    – Turbotanten
    Apr 23 at 14:13











  • I'm simply drawing the path for the clip (and use the height and width of the box).

    – Ulrike Fischer
    Apr 23 at 14:16











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%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









7














You can use tikz to clip it:



documentclassarticle
usepackagetikz,graphicx
begindocument
newsaveboxmybox
saveboxmyboxincludegraphics[width=10cm]example-image-duck
begintikzpicture
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;
endtikzpicture


enddocument


enter image description here






share|improve this answer























  • Could you explain what the options in clip command does?

    – Turbotanten
    Apr 23 at 14:13











  • I'm simply drawing the path for the clip (and use the height and width of the box).

    – Ulrike Fischer
    Apr 23 at 14:16















7














You can use tikz to clip it:



documentclassarticle
usepackagetikz,graphicx
begindocument
newsaveboxmybox
saveboxmyboxincludegraphics[width=10cm]example-image-duck
begintikzpicture
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;
endtikzpicture


enddocument


enter image description here






share|improve this answer























  • Could you explain what the options in clip command does?

    – Turbotanten
    Apr 23 at 14:13











  • I'm simply drawing the path for the clip (and use the height and width of the box).

    – Ulrike Fischer
    Apr 23 at 14:16













7












7








7







You can use tikz to clip it:



documentclassarticle
usepackagetikz,graphicx
begindocument
newsaveboxmybox
saveboxmyboxincludegraphics[width=10cm]example-image-duck
begintikzpicture
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;
endtikzpicture


enddocument


enter image description here






share|improve this answer













You can use tikz to clip it:



documentclassarticle
usepackagetikz,graphicx
begindocument
newsaveboxmybox
saveboxmyboxincludegraphics[width=10cm]example-image-duck
begintikzpicture
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;
endtikzpicture


enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 23 at 13:43









Ulrike FischerUlrike Fischer

201k9309695




201k9309695












  • Could you explain what the options in clip command does?

    – Turbotanten
    Apr 23 at 14:13











  • I'm simply drawing the path for the clip (and use the height and width of the box).

    – Ulrike Fischer
    Apr 23 at 14:16

















  • Could you explain what the options in clip command does?

    – Turbotanten
    Apr 23 at 14:13











  • I'm simply drawing the path for the clip (and use the height and width of the box).

    – Ulrike Fischer
    Apr 23 at 14:16
















Could you explain what the options in clip command does?

– Turbotanten
Apr 23 at 14:13





Could you explain what the options in clip command does?

– Turbotanten
Apr 23 at 14:13













I'm simply drawing the path for the clip (and use the height and width of the box).

– Ulrike Fischer
Apr 23 at 14:16





I'm simply drawing the path for the clip (and use the height and width of the box).

– Ulrike Fischer
Apr 23 at 14:16

















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%2f486204%2flatex-trimbox-figure%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