Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to do draw a trapeze in position in the left corner of the page (as shown on the picture below). How can I do that?

layout

share|improve this question
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. What have you tried? What class are you using? –  Jubobs Mar 5 at 10:47
    
Who call it trapezium? –  stalking is prohibited Mar 5 at 16:27
    
I was so hoping this was asking for a flip-book animation of a trapeze act in the page corner..... :-) –  RBerteig Mar 5 at 21:11

3 Answers 3

up vote 7 down vote accepted

With tikz:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage[a4paper,margin=1in]{geometry}
\begin{document}
  \begin{tikzpicture}[remember picture,overlay]
    \fill[gray!50] (current page.north west) -- ($(current page.north west) +(0,-1.1in)$) -- 
        ($(current page.north west) +(1.8in,-1.5in)$) -- ($(current page.north west) +(2.5in,0)$)
          --  cycle;
    \draw[gray!50,line width=3pt] ($(current page.north) +(0,-1.3in)$) --
        ($(current page.north east) +(-1in,-1.3in)$) -- ($(current page.north east)
            +(-1in,-2.5in)$);
  \end{tikzpicture}
  {\Huge\bfseries\sffamily \textcolor{gray}{Name}}
\end{document}

enter image description here

Easier version:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage[a4paper,margin=1in]{geometry}
\begin{document}
  \begin{tikzpicture}[remember picture,overlay]
    \fill[gray!50,rotate=-15] ($(current page.north west) +(0,-1in)$) rectangle
        ($(current page.north west) +(2.25in,2.5in)$);
    \draw[gray!50,line width=3pt] ($(current page.north) +(0,-1.3in)$) --
        ($(current page.north east) +(-1in,-1.3in)$) -- ($(current page.north east)
            +(-1in,-2.5in)$);
  \end{tikzpicture}
  {\Huge\bfseries\sffamily \textcolor{gray}{Name}}
\end{document}

enter image description here

This will take at least 2 compilations to settle down.

Response to the query in the form of deleted answer bu the OP:

You have to add the tikzpicture inside \begin{letter}

\documentclass{scrlttr2}
\usepackage{tikz}
\usetikzlibrary{calc}
 \begin{document} 

\setkomavar{subject}{Betreff: der Stein ist sehr groß}
\setkomavar{date}{\today}

\begin{letter}{
\begin{tikzpicture}[remember picture,overlay]
    \fill[gray!50,rotate=-15] ($(current page.north west) +(0,-1in)$) rectangle
        ($(current page.north west) +(2.25in,2.5in)$);
    \draw[gray!50,line width=3pt] ($(current page.north) +(0,-1.3in)$) --
        ($(current page.north east) +(-1in,-1.3in)$) -- ($(current page.north east)
            +(-1in,-10.5in)$);
  \end{tikzpicture}
  {\Huge\bfseries\sffamily \textcolor{gray}{Name}}

    Mulle Mullo\\
    Strasse 2\\
    12345 Ort}
\opening{Lieber Mulle,}
Ich mag Deinen Bauernhof nicht und sende Dir einen Staubsauger.
\closing{Mit freundlichen Grüßen}
\end{letter}

\end{document}

enter image description here

share|improve this answer
    
Thanks this helps :) –  NewGuest Mar 5 at 16:48
    
@NewGuest Glad it helped. –  Harish Kumar Mar 5 at 22:47
    
@NewGuest You have to add the tikzpicture inside \begin{letter}. See the edit. –  Harish Kumar Mar 5 at 23:19
\documentclass{article}
\usepackage{graphicx,xcolor}
\AtBeginDocument{%
  \makebox(0,0){%
    \put(-200,230){%   change to whatever position you need
      \rotatebox[origin=rb]{-20}{\color{black!20}\rule{6cm}{4cm}}}}}
\begin{document}

foo

\end{document}

enter image description here

share|improve this answer

Combination of \makebox, \put and tikz:

\documentclass{article}
\usepackage{tikz}

\begin{document}

    \makebox(0,0){
        \put(-190,190){
            \begin{tikzpicture}
                \fill[gray!40] (0,5) -- (6,5) -- (4,0) -- (0,2) -- cycle;
            \end{tikzpicture}
        }
    }

    Name

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.