Latex trimbox figure? Announcing the arrival of Valued Associate #679: Cesar Manara ...

How do I deal with an erroneously large refund?

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

Can gravitational waves pass through a black hole?

Coin Game with infinite paradox

Processing ADC conversion result: DMA vs Processor Registers

How to translate "red flag" into Spanish?

My admission is revoked after accepting the admission offer

When does Bran Stark remember Jamie pushing him?

Retract an already submitted Recommendation Letter (written for an undergrad student)

Variable does not exist: sObjectType (Task.sObjectType)

What *exactly* is electrical current, voltage, and resistance?

Will I lose my paid in full property

When speaking, how do you change your mind mid-sentence?

Is there a verb for listening stealthily?

Why would the Overseers waste their stock of slaves on the Game?

Why aren't road bicycle wheels tiny?

Is it OK if I do not take the receipt in Germany?

Why I cannot instantiate a class whose constructor is private in a friend class?

Israeli soda type drink

Is there a way to fake a method response using Mock or Stubs?

What is /etc/mtab in Linux?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

How was Lagrange appointed professor of mathematics so early?

France's Public Holidays' Puzzle



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)












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


















  • 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
















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


















  • 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














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














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












share










share



share










asked 11 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














  • 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










1 Answer
1






active

oldest

votes


















6














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}


enter image description here





share
























  • 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



















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














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}


enter image description here





share
























  • 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
















6














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}


enter image description here





share
























  • 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














6












6








6







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}


enter image description here





share













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}


enter image description here






share











share


share










answered 10 hours ago









Ulrike FischerUlrike Fischer

201k9307693




201k9307693













  • 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



















  • 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

















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



Popular posts from this blog

Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...