Joli cadre pour texte

Est-ce que quelqu'un peut me dire quel package il faut utiliser pour obtenir ce joli cadre de texte irrégulier que je joins à la question, juste ci-dessus.

Posée 20 Jui '19, 04:17

idefix's gravatar image

idefix
955134151
Taux d'acceptation : 14%

Modifiée 20 Jui '19, 05:40

Je vais modifier ma réponse sur l'autre site en vous citant

(20 Jui '19, 19:46) idefix idefix's gravatar image

@idefix Merci!

(20 Jui '19, 22:01) samcarter samcarter's gravatar image

Modifié de https://tex.stackexchange.com/a/86392/36296 :

Ouvrir dans l'éditeur Overleaf
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing,calc,shadows.blur,shadings}
\newcounter{mathseed}
\setcounter{mathseed}{6}
\pgfmathsetseed{\arabic{mathseed}} % To have predictable results
% Define a background layer, in which the parchment shape is drawn
\pgfdeclarelayer{background}
\pgfsetlayers{background,main}
% This is the base for the fractal decoration. It takes a random point between the start and end, and
% raises it a random amount, thus transforming a segment into two, connected at that raised point
% This decoration can be applied again to each one of the resulting segments and so on, in a similar
% way of a Koch snowflake.
\pgfdeclaredecoration{irregular fractal line}{init}
{
\state{init}[width=\pgfdecoratedinputsegmentremainingdistance]
{
\pgfpathlineto{\pgfpoint{random*\pgfdecoratedinputsegmentremainingdistance}{(random*\pgfdecorationsegmentamplitude-0.02)*\pgfdecoratedinputsegmentremainingdistance}}
\pgfpathlineto{\pgfpoint{\pgfdecoratedinputsegmentremainingdistance}{0pt}}
}
}
% define some styles
\tikzset{
paper/.style={draw=black, fill=none},
irregular border/.style={decoration={irregular fractal line, amplitude=0.1},
decorate,
},
ragged border/.style={ decoration={random steps, segment length=2mm, amplitude=1mm},
decorate,
}
}
\def\tornpaper#1{%
\tikz{
\node[inner sep=1em,text width=.85\linewidth,align=flush left] (A) {#1}; % Draw the text of the node
\begin{pgfonlayer}{background} % Draw the shape behind
\draw[paper] % recursively decorate the bottom border
\pgfextra{\pgfmathsetseed{\arabic{mathseed}}\addtocounter{mathseed}{1}}%
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

alt text

Une version plus simple :

Ouvrir dans l'éditeur Overleaf
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\newcommand\randombox[1]{%
\tikz{%
\node[inner sep=1em,text width=.85\linewidth,align=flush left] (A) {#1};
\draw[decoration={random steps,segment length=0.4cm,amplitude=.1cm},decorate]
(A.north west) -- (A.north east) -- (A.south east) -- (A.south west) -- cycle;
}}
\begin{document}
\randombox{%
{\Large Mon text en large} mon text
}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

alt text

Lien permanent

Publiée 20 Jui '19, 04:36

samcarter's gravatar image

samcarter
8.6k2817
Taux d'acceptation : 57%

Modifiée 20 Jui '19, 05:24

Ca me plait bien, mais c'est un peu différent, le contour est plus irrégulier. Encore d'autres façon de faire ? Les bords latéraux n'étaient pas rectiligne il y a quelques minutes ?

(20 Jui '19, 05:00) idefix idefix's gravatar image

@idefix J'ai crée une version plus simple

(20 Jui '19, 05:26) samcarter samcarter's gravatar image

@samcarter Alors là c'est vraiment très proche de l'original, et c'est en effet plus simple. Merci (même s'il parait qu'il ne faut pas le dire)

(20 Jui '19, 05:35) idefix idefix's gravatar image
1

@idefix Attention ! Cette réponse était un commentaire plutôt qu'une réponse et a été convertie comme tel.

(20 Jui '19, 12:38) denis ♦♦ denis's gravatar image
1

@denis Merci beaucoup pour votre modifications des mes réponses ! Comme un petit merci, j'ai créé https://texnique.fr/osqa/upfiles/TourDeFrance.gif

(23 Jui '19, 17:12) samcarter samcarter's gravatar image

@samcarter Excellent ! Tous ces petits animaux bien sympathiques contribuent à rendre LaTeX encore plus gai :) Merci à vous surtout : les modifications de vos réponses ne sont rien à côté de tout ce que vos pertinentes contributions rendent comme services à la communauté des utilisateurs francophones de LaTeX !

(24 Jui '19, 00:18) denis ♦♦ denis's gravatar image
Affichage de 5 parmi 6 Afficher 1 commentaire(s) en plus
Votre réponse
[Masquer l'aperçu]

Suivre cette question

Par courriel :

Une fois que vous serez enregistré, vous pourrez souscrire à n'importe quelle mise à jour ici

Par flux RSS :

Réponses

Réponses et commentaires

Mots-clés de la question :

×109
×18
×6

Question posée : 20 Jui '19, 04:17

Question vue : 8,216 fois

Dernière mise à jour : 24 Jui '19, 00:18

C'est votre première visite ici ? Consultez la FAQ !

×