Position figure (left, right, center ) minipage, wrapfigure etc.. and equation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















I'm having a problem with the position of the equations and the image.
how come the second and third equations have an indentation and are not aligned? (in particular the second one). I think that by observing them they are not very pleasant to look at
how come the figure is so detached?
thanks.



documentclass[a4paper,10pt]article
usepackage[utf8]inputenc%
usepackage[T1]fontenc
usepackagebabel
usepackage[demo]graphicx
usepackagecaption
usepackagemathtools

%usepackageempheq
usepackageshowlabels %%<----
newcommandde[1]mathrmd#1
newcommandFra[2]displaystyle frac #1 #2
beginminipage[h].65textwidth
In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
beginsubequations
beginalign
dep = -g,rhodezlabeleq086qquad
textparbox4cmEquazione Idrostatica\
mathbfp = rho,R,T = FraR,TVlabeleq086.1\
rho= FramathbfpR,Tlabeleq086.2qquad
textparbox4cmEquazione di Stato
endalign
endsubequations
endminipagehfill
%
beginminipage[h].35textheight
centeringraiseboxdimexpr topskip-height%

includegraphics[width=0.4textwidth]particella/adiabatica
captionoffigure\Andamento della densità\con la quota
labelfig:adiabatica
endminipage
vspace1cm

Combinando le due equazioni, si ottiene :
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here



-------------------UPDATE-------------------



I tried to write the code using wrapfigure as suggested by GuM. I hope it is correct or needs a review?



beginminipage[h].95textwidth

beginwrapfigure[25]r3.5cm
includegraphics[width=3.5cm]adiabatica
captionoffigureAndamento della densit`a con la quota
labelfig:adiabatica
endwrapfigure%hfill

In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:

beginsubequations
beginalign
dep &= -g,rhodez
&& textEquaz. Idrostatica
labeleq086 \
mathbfp &= rho RT = FraRTVlabeleq086.1 \
rho &= FramathbfpRTlabeleq086.2
&& textEquaz. di Stato
endalign
endsubequations
endminipagequadhfill
bigskipbigskipbigskip

Combinando le due equazioni, si ottiene:
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here










share|improve this question



















  • 1





    I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

    – Harald Hanche-Olsen
    Feb 7 at 17:45






  • 1





    One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

    – Harald Hanche-Olsen
    Feb 7 at 17:47















2















I'm having a problem with the position of the equations and the image.
how come the second and third equations have an indentation and are not aligned? (in particular the second one). I think that by observing them they are not very pleasant to look at
how come the figure is so detached?
thanks.



documentclass[a4paper,10pt]article
usepackage[utf8]inputenc%
usepackage[T1]fontenc
usepackagebabel
usepackage[demo]graphicx
usepackagecaption
usepackagemathtools

%usepackageempheq
usepackageshowlabels %%<----
newcommandde[1]mathrmd#1
newcommandFra[2]displaystyle frac #1 #2
beginminipage[h].65textwidth
In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
beginsubequations
beginalign
dep = -g,rhodezlabeleq086qquad
textparbox4cmEquazione Idrostatica\
mathbfp = rho,R,T = FraR,TVlabeleq086.1\
rho= FramathbfpR,Tlabeleq086.2qquad
textparbox4cmEquazione di Stato
endalign
endsubequations
endminipagehfill
%
beginminipage[h].35textheight
centeringraiseboxdimexpr topskip-height%

includegraphics[width=0.4textwidth]particella/adiabatica
captionoffigure\Andamento della densità\con la quota
labelfig:adiabatica
endminipage
vspace1cm

Combinando le due equazioni, si ottiene :
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here



-------------------UPDATE-------------------



I tried to write the code using wrapfigure as suggested by GuM. I hope it is correct or needs a review?



beginminipage[h].95textwidth

beginwrapfigure[25]r3.5cm
includegraphics[width=3.5cm]adiabatica
captionoffigureAndamento della densit`a con la quota
labelfig:adiabatica
endwrapfigure%hfill

In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:

beginsubequations
beginalign
dep &= -g,rhodez
&& textEquaz. Idrostatica
labeleq086 \
mathbfp &= rho RT = FraRTVlabeleq086.1 \
rho &= FramathbfpRTlabeleq086.2
&& textEquaz. di Stato
endalign
endsubequations
endminipagequadhfill
bigskipbigskipbigskip

Combinando le due equazioni, si ottiene:
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here










share|improve this question



















  • 1





    I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

    – Harald Hanche-Olsen
    Feb 7 at 17:45






  • 1





    One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

    – Harald Hanche-Olsen
    Feb 7 at 17:47













2












2








2








I'm having a problem with the position of the equations and the image.
how come the second and third equations have an indentation and are not aligned? (in particular the second one). I think that by observing them they are not very pleasant to look at
how come the figure is so detached?
thanks.



documentclass[a4paper,10pt]article
usepackage[utf8]inputenc%
usepackage[T1]fontenc
usepackagebabel
usepackage[demo]graphicx
usepackagecaption
usepackagemathtools

%usepackageempheq
usepackageshowlabels %%<----
newcommandde[1]mathrmd#1
newcommandFra[2]displaystyle frac #1 #2
beginminipage[h].65textwidth
In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
beginsubequations
beginalign
dep = -g,rhodezlabeleq086qquad
textparbox4cmEquazione Idrostatica\
mathbfp = rho,R,T = FraR,TVlabeleq086.1\
rho= FramathbfpR,Tlabeleq086.2qquad
textparbox4cmEquazione di Stato
endalign
endsubequations
endminipagehfill
%
beginminipage[h].35textheight
centeringraiseboxdimexpr topskip-height%

includegraphics[width=0.4textwidth]particella/adiabatica
captionoffigure\Andamento della densità\con la quota
labelfig:adiabatica
endminipage
vspace1cm

Combinando le due equazioni, si ottiene :
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here



-------------------UPDATE-------------------



I tried to write the code using wrapfigure as suggested by GuM. I hope it is correct or needs a review?



beginminipage[h].95textwidth

beginwrapfigure[25]r3.5cm
includegraphics[width=3.5cm]adiabatica
captionoffigureAndamento della densit`a con la quota
labelfig:adiabatica
endwrapfigure%hfill

In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:

beginsubequations
beginalign
dep &= -g,rhodez
&& textEquaz. Idrostatica
labeleq086 \
mathbfp &= rho RT = FraRTVlabeleq086.1 \
rho &= FramathbfpRTlabeleq086.2
&& textEquaz. di Stato
endalign
endsubequations
endminipagequadhfill
bigskipbigskipbigskip

Combinando le due equazioni, si ottiene:
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here










share|improve this question
















I'm having a problem with the position of the equations and the image.
how come the second and third equations have an indentation and are not aligned? (in particular the second one). I think that by observing them they are not very pleasant to look at
how come the figure is so detached?
thanks.



documentclass[a4paper,10pt]article
usepackage[utf8]inputenc%
usepackage[T1]fontenc
usepackagebabel
usepackage[demo]graphicx
usepackagecaption
usepackagemathtools

%usepackageempheq
usepackageshowlabels %%<----
newcommandde[1]mathrmd#1
newcommandFra[2]displaystyle frac #1 #2
beginminipage[h].65textwidth
In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
beginsubequations
beginalign
dep = -g,rhodezlabeleq086qquad
textparbox4cmEquazione Idrostatica\
mathbfp = rho,R,T = FraR,TVlabeleq086.1\
rho= FramathbfpR,Tlabeleq086.2qquad
textparbox4cmEquazione di Stato
endalign
endsubequations
endminipagehfill
%
beginminipage[h].35textheight
centeringraiseboxdimexpr topskip-height%

includegraphics[width=0.4textwidth]particella/adiabatica
captionoffigure\Andamento della densità\con la quota
labelfig:adiabatica
endminipage
vspace1cm

Combinando le due equazioni, si ottiene :
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here



-------------------UPDATE-------------------



I tried to write the code using wrapfigure as suggested by GuM. I hope it is correct or needs a review?



beginminipage[h].95textwidth

beginwrapfigure[25]r3.5cm
includegraphics[width=3.5cm]adiabatica
captionoffigureAndamento della densit`a con la quota
labelfig:adiabatica
endwrapfigure%hfill

In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:

beginsubequations
beginalign
dep &= -g,rhodez
&& textEquaz. Idrostatica
labeleq086 \
mathbfp &= rho RT = FraRTVlabeleq086.1 \
rho &= FramathbfpRTlabeleq086.2
&& textEquaz. di Stato
endalign
endsubequations
endminipagequadhfill
bigskipbigskipbigskip

Combinando le due equazioni, si ottiene:
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation


enter image description here







equations align wrapfigure subequations






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 at 17:05







Antonio

















asked Feb 7 at 17:24









AntonioAntonio

17411




17411







  • 1





    I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

    – Harald Hanche-Olsen
    Feb 7 at 17:45






  • 1





    One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

    – Harald Hanche-Olsen
    Feb 7 at 17:47












  • 1





    I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

    – Harald Hanche-Olsen
    Feb 7 at 17:45






  • 1





    One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

    – Harald Hanche-Olsen
    Feb 7 at 17:47







1




1





I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

– Harald Hanche-Olsen
Feb 7 at 17:45





I started adding a preamble so I could compile your file and propose a solution, but I gave up. I managed to provide the missing commands and includepackage lines, but I can't quite reproduce your output, as I don't know what your page geometry and other parameters are set to, or what class you're using. Which is a long-winded way of saying: Please expand the sample code to a MWE. Also, replace the included figure by something like example-image-10x16. The helpful folks here need your help to let them help you!

– Harald Hanche-Olsen
Feb 7 at 17:45




1




1





One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

– Harald Hanche-Olsen
Feb 7 at 17:47





One comment, though: Your align environment is conspicuously lacking any ampersand (&) characters for the alignment. That might be a big part of your problem, right there.

– Harald Hanche-Olsen
Feb 7 at 17:47










2 Answers
2






active

oldest

votes


















5














You need &s to mark the alignment points (2n – 1 &s for n alignment points). Here is a possibility, with a recreated preamble. However, note that, with the chosen lengths the figure overflows into the margin.



documentclass[a4paper, italian]article
usepackage[utf8]inputenc%
usepackage[T1]fontenc
usepackagebabel
usepackage[demo]graphicx
usepackagecaption
usepackagemathtools
newcommandde[1]mathrmd#1
letFra=frac

begindocument

beginminipage[h].65textwidth
In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
\
Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
beginsubequations
beginalign
dep & = -g,rhodezlabeleq086 & & textEquazione Idrostatica\
mathbfp & = rho,R,T= mathrlapFraR,TVlabeleq086.1\
rho & = FramathbfpR,Tlabeleq086.2 & & textEquazione di Stato
endalign
endsubequations
endminipagehfill
%
beginminipage[h].35textheight
centeringraiseboxdimexpr topskip-height%
includegraphics[width=0.4textwidth]particella/adiabatica
captionoffigure\Andamento della densità\con la quota
labelfig:adiabatica
endminipage
vspace1cm

Combinando le due equazioni, si ottiene :
%
beginequation
setlengthfboxsep0cm
setlengthfboxrule0pt
dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
endequation

enddocument


enter image description here






share|improve this answer
































    4














    Have a look at this (same remarks as Bernard’s):



    % My standard header for TeX.SX answers:
    documentclass[a4paper]article % To avoid confusion, let us explicitly
    % declare the paper format.

    usepackage[T1]fontenc % Not always necessary, but recommended.
    % End of standard header. What follows pertains to the problem at hand.

    usepackage[italian]babel
    usepackageamsmath
    % usepackagecaption
    usepackagecapt-of

    usepackagemwe % for this MWE only

    newcommand*de[1]mathop!mathrmd#1 % stub
    newcommand*Fra[2]frac#1#2 % ???



    begindocument

    noindentbeginminipage[c].6textwidth
    In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
    la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
    idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
    quota.

    Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
    non statistiche:
    beginsubequations
    beginalign
    dep &= -g,rhodez
    && textEquaz. Idrostatica
    labeleq086 \
    mathbfp &= rho RT = FraRTVlabeleq086.1 \
    rho &= FramathbfpRTlabeleq086.2
    && textEquaz. di Stato
    endalign
    endsubequations
    endminipagequadhfill
    %
    beginminipage[c].35textwidth
    centering
    includegraphics[width=0.8linewidth]image
    captionoffigureAndamento della densit`a con la quota
    labelfig:adiabatica
    endminipage

    bigskip

    Combinando le due equazioni, si ottiene:
    %
    beginequation
    setlengthfboxsep0cm
    setlengthfboxrule0pt
    dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
    endequation

    enddocument


    Here’s the output:



    Output of the code



    Note the following points, among the others:



    • I use the [c] position specifier to align the two minipages
      at their vertical center, without having to tamper with the
      vertical space inside the rightmost one;


    • do not use \ to separate paragraphs inside the minipages;


    • I use & and && inside the align environment,
      as Bernard has already taught
      you;


    • I replaced textheight with textwidth in the “width”
      argument of the second minipage environment (!!!);


    • finally, I added noindent before the first minipage
      (I had previously overlooked this!).


    However, you are trying to bypass (La)TeX pagination methods by hand in a way I deem incorrect; are you aware of the wrapfig package?




    Update



    Here’s an example of how you could use the wrapfigure environment (requires the wrapfig package). Note that, owing to the unusual height of the group of equations, it is advisable to specify explicitly the number of “virtual lines” in the narrower part: this is done via the first optional argument of the wrapfigure environment. In this case, a value of 10 seems adequate. Recall that equations are assumed to take up the equivalent of three lines.



    % My standard header for TeX.SX answers:
    documentclass[a4paper]article % To avoid confusion, let us explicitly
    % declare the paper format.

    usepackage[T1]fontenc % Not always necessary, but recommended.
    % End of standard header. What follows pertains to the problem at hand.

    usepackage[italian]babel
    usepackageamsmath
    % usepackagecaption
    usepackagecapt-of
    usepackagewrapfig

    usepackagemwe % for this MWE only

    newcommand*de[1]mathop!mathrmd#1 % stub
    newcommand*Fra[2]frac#1#2 % ???



    begindocument

    Testo che precede la parte nella quale si vuole inserire la figura a margine.
    Si assume che la figura debba stare nel margine emphesterno
    (( texttto=textitouter )).

    beginwrapfigure[10]o.35textwidth
    centering
    includegraphics[width=0.8linewidth]image
    captionoffigureAndamento della densit`a con la quota
    labelfig:adiabatica
    endwrapfigure

    In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
    la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
    idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
    quota.

    Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
    non statistiche:
    beginsubequations
    beginalign
    dep &= -grhodez
    && textEquaz. Idrostatica
    labeleq086 \
    mathbfp &= rho RT = FraRTVlabeleq086.1 \
    rho &= FramathbfpRTlabeleq086.2
    && textEquaz. di Stato
    endalign
    endsubequations

    Combinando le due equazioni, si ottiene
    (aggiungo questo commento al solo scopo
    di dimostrare che siamo tornati alla giustezza piena):
    %
    beginequation
    % setlengthfboxsep0cm % ???
    % setlengthfboxrule0pt
    dep = -gFramathbfpRTdez
    quadLongrightarrowquad
    Fradepdez= -gFramathbfpRT
    labeleq086.3
    % \ % ??? (!!!)
    endequation

    enddocument


    Note also that it is a very bad idea to use labels like eq086.3: always use symbolic labels.



    The output for the second example follows:



    Output for the second example






    share|improve this answer

























    • Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

      – Antonio
      Feb 7 at 19:55










    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%2f473801%2fposition-figure-left-right-center-minipage-wrapfigure-etc-and-equation%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    You need &s to mark the alignment points (2n – 1 &s for n alignment points). Here is a possibility, with a recreated preamble. However, note that, with the chosen lengths the figure overflows into the margin.



    documentclass[a4paper, italian]article
    usepackage[utf8]inputenc%
    usepackage[T1]fontenc
    usepackagebabel
    usepackage[demo]graphicx
    usepackagecaption
    usepackagemathtools
    newcommandde[1]mathrmd#1
    letFra=frac

    begindocument

    beginminipage[h].65textwidth
    In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
    \
    Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
    beginsubequations
    beginalign
    dep & = -g,rhodezlabeleq086 & & textEquazione Idrostatica\
    mathbfp & = rho,R,T= mathrlapFraR,TVlabeleq086.1\
    rho & = FramathbfpR,Tlabeleq086.2 & & textEquazione di Stato
    endalign
    endsubequations
    endminipagehfill
    %
    beginminipage[h].35textheight
    centeringraiseboxdimexpr topskip-height%
    includegraphics[width=0.4textwidth]particella/adiabatica
    captionoffigure\Andamento della densità\con la quota
    labelfig:adiabatica
    endminipage
    vspace1cm

    Combinando le due equazioni, si ottiene :
    %
    beginequation
    setlengthfboxsep0cm
    setlengthfboxrule0pt
    dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
    endequation

    enddocument


    enter image description here






    share|improve this answer





























      5














      You need &s to mark the alignment points (2n – 1 &s for n alignment points). Here is a possibility, with a recreated preamble. However, note that, with the chosen lengths the figure overflows into the margin.



      documentclass[a4paper, italian]article
      usepackage[utf8]inputenc%
      usepackage[T1]fontenc
      usepackagebabel
      usepackage[demo]graphicx
      usepackagecaption
      usepackagemathtools
      newcommandde[1]mathrmd#1
      letFra=frac

      begindocument

      beginminipage[h].65textwidth
      In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
      \
      Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
      beginsubequations
      beginalign
      dep & = -g,rhodezlabeleq086 & & textEquazione Idrostatica\
      mathbfp & = rho,R,T= mathrlapFraR,TVlabeleq086.1\
      rho & = FramathbfpR,Tlabeleq086.2 & & textEquazione di Stato
      endalign
      endsubequations
      endminipagehfill
      %
      beginminipage[h].35textheight
      centeringraiseboxdimexpr topskip-height%
      includegraphics[width=0.4textwidth]particella/adiabatica
      captionoffigure\Andamento della densità\con la quota
      labelfig:adiabatica
      endminipage
      vspace1cm

      Combinando le due equazioni, si ottiene :
      %
      beginequation
      setlengthfboxsep0cm
      setlengthfboxrule0pt
      dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
      endequation

      enddocument


      enter image description here






      share|improve this answer



























        5












        5








        5







        You need &s to mark the alignment points (2n – 1 &s for n alignment points). Here is a possibility, with a recreated preamble. However, note that, with the chosen lengths the figure overflows into the margin.



        documentclass[a4paper, italian]article
        usepackage[utf8]inputenc%
        usepackage[T1]fontenc
        usepackagebabel
        usepackage[demo]graphicx
        usepackagecaption
        usepackagemathtools
        newcommandde[1]mathrmd#1
        letFra=frac

        begindocument

        beginminipage[h].65textwidth
        In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
        \
        Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
        beginsubequations
        beginalign
        dep & = -g,rhodezlabeleq086 & & textEquazione Idrostatica\
        mathbfp & = rho,R,T= mathrlapFraR,TVlabeleq086.1\
        rho & = FramathbfpR,Tlabeleq086.2 & & textEquazione di Stato
        endalign
        endsubequations
        endminipagehfill
        %
        beginminipage[h].35textheight
        centeringraiseboxdimexpr topskip-height%
        includegraphics[width=0.4textwidth]particella/adiabatica
        captionoffigure\Andamento della densità\con la quota
        labelfig:adiabatica
        endminipage
        vspace1cm

        Combinando le due equazioni, si ottiene :
        %
        beginequation
        setlengthfboxsep0cm
        setlengthfboxrule0pt
        dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
        endequation

        enddocument


        enter image description here






        share|improve this answer















        You need &s to mark the alignment points (2n – 1 &s for n alignment points). Here is a possibility, with a recreated preamble. However, note that, with the chosen lengths the figure overflows into the margin.



        documentclass[a4paper, italian]article
        usepackage[utf8]inputenc%
        usepackage[T1]fontenc
        usepackagebabel
        usepackage[demo]graphicx
        usepackagecaption
        usepackagemathtools
        newcommandde[1]mathrmd#1
        letFra=frac

        begindocument

        beginminipage[h].65textwidth
        In un textitP.B.L., in quiete, la forza di gravità bilancia esattamente la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la quota.
        \
        Questa relazione conserva la sua validità anche in situazioni reali, ossia non statistiche:
        beginsubequations
        beginalign
        dep & = -g,rhodezlabeleq086 & & textEquazione Idrostatica\
        mathbfp & = rho,R,T= mathrlapFraR,TVlabeleq086.1\
        rho & = FramathbfpR,Tlabeleq086.2 & & textEquazione di Stato
        endalign
        endsubequations
        endminipagehfill
        %
        beginminipage[h].35textheight
        centeringraiseboxdimexpr topskip-height%
        includegraphics[width=0.4textwidth]particella/adiabatica
        captionoffigure\Andamento della densità\con la quota
        labelfig:adiabatica
        endminipage
        vspace1cm

        Combinando le due equazioni, si ottiene :
        %
        beginequation
        setlengthfboxsep0cm
        setlengthfboxrule0pt
        dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
        endequation

        enddocument


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 7 at 20:56

























        answered Feb 7 at 17:53









        BernardBernard

        172k775203




        172k775203





















            4














            Have a look at this (same remarks as Bernard’s):



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            noindentbeginminipage[c].6textwidth
            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -g,rhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations
            endminipagequadhfill
            %
            beginminipage[c].35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endminipage

            bigskip

            Combinando le due equazioni, si ottiene:
            %
            beginequation
            setlengthfboxsep0cm
            setlengthfboxrule0pt
            dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
            endequation

            enddocument


            Here’s the output:



            Output of the code



            Note the following points, among the others:



            • I use the [c] position specifier to align the two minipages
              at their vertical center, without having to tamper with the
              vertical space inside the rightmost one;


            • do not use \ to separate paragraphs inside the minipages;


            • I use & and && inside the align environment,
              as Bernard has already taught
              you;


            • I replaced textheight with textwidth in the “width”
              argument of the second minipage environment (!!!);


            • finally, I added noindent before the first minipage
              (I had previously overlooked this!).


            However, you are trying to bypass (La)TeX pagination methods by hand in a way I deem incorrect; are you aware of the wrapfig package?




            Update



            Here’s an example of how you could use the wrapfigure environment (requires the wrapfig package). Note that, owing to the unusual height of the group of equations, it is advisable to specify explicitly the number of “virtual lines” in the narrower part: this is done via the first optional argument of the wrapfigure environment. In this case, a value of 10 seems adequate. Recall that equations are assumed to take up the equivalent of three lines.



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of
            usepackagewrapfig

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            Testo che precede la parte nella quale si vuole inserire la figura a margine.
            Si assume che la figura debba stare nel margine emphesterno
            (( texttto=textitouter )).

            beginwrapfigure[10]o.35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endwrapfigure

            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -grhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations

            Combinando le due equazioni, si ottiene
            (aggiungo questo commento al solo scopo
            di dimostrare che siamo tornati alla giustezza piena):
            %
            beginequation
            % setlengthfboxsep0cm % ???
            % setlengthfboxrule0pt
            dep = -gFramathbfpRTdez
            quadLongrightarrowquad
            Fradepdez= -gFramathbfpRT
            labeleq086.3
            % \ % ??? (!!!)
            endequation

            enddocument


            Note also that it is a very bad idea to use labels like eq086.3: always use symbolic labels.



            The output for the second example follows:



            Output for the second example






            share|improve this answer

























            • Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

              – Antonio
              Feb 7 at 19:55















            4














            Have a look at this (same remarks as Bernard’s):



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            noindentbeginminipage[c].6textwidth
            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -g,rhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations
            endminipagequadhfill
            %
            beginminipage[c].35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endminipage

            bigskip

            Combinando le due equazioni, si ottiene:
            %
            beginequation
            setlengthfboxsep0cm
            setlengthfboxrule0pt
            dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
            endequation

            enddocument


            Here’s the output:



            Output of the code



            Note the following points, among the others:



            • I use the [c] position specifier to align the two minipages
              at their vertical center, without having to tamper with the
              vertical space inside the rightmost one;


            • do not use \ to separate paragraphs inside the minipages;


            • I use & and && inside the align environment,
              as Bernard has already taught
              you;


            • I replaced textheight with textwidth in the “width”
              argument of the second minipage environment (!!!);


            • finally, I added noindent before the first minipage
              (I had previously overlooked this!).


            However, you are trying to bypass (La)TeX pagination methods by hand in a way I deem incorrect; are you aware of the wrapfig package?




            Update



            Here’s an example of how you could use the wrapfigure environment (requires the wrapfig package). Note that, owing to the unusual height of the group of equations, it is advisable to specify explicitly the number of “virtual lines” in the narrower part: this is done via the first optional argument of the wrapfigure environment. In this case, a value of 10 seems adequate. Recall that equations are assumed to take up the equivalent of three lines.



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of
            usepackagewrapfig

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            Testo che precede la parte nella quale si vuole inserire la figura a margine.
            Si assume che la figura debba stare nel margine emphesterno
            (( texttto=textitouter )).

            beginwrapfigure[10]o.35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endwrapfigure

            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -grhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations

            Combinando le due equazioni, si ottiene
            (aggiungo questo commento al solo scopo
            di dimostrare che siamo tornati alla giustezza piena):
            %
            beginequation
            % setlengthfboxsep0cm % ???
            % setlengthfboxrule0pt
            dep = -gFramathbfpRTdez
            quadLongrightarrowquad
            Fradepdez= -gFramathbfpRT
            labeleq086.3
            % \ % ??? (!!!)
            endequation

            enddocument


            Note also that it is a very bad idea to use labels like eq086.3: always use symbolic labels.



            The output for the second example follows:



            Output for the second example






            share|improve this answer

























            • Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

              – Antonio
              Feb 7 at 19:55













            4












            4








            4







            Have a look at this (same remarks as Bernard’s):



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            noindentbeginminipage[c].6textwidth
            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -g,rhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations
            endminipagequadhfill
            %
            beginminipage[c].35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endminipage

            bigskip

            Combinando le due equazioni, si ottiene:
            %
            beginequation
            setlengthfboxsep0cm
            setlengthfboxrule0pt
            dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
            endequation

            enddocument


            Here’s the output:



            Output of the code



            Note the following points, among the others:



            • I use the [c] position specifier to align the two minipages
              at their vertical center, without having to tamper with the
              vertical space inside the rightmost one;


            • do not use \ to separate paragraphs inside the minipages;


            • I use & and && inside the align environment,
              as Bernard has already taught
              you;


            • I replaced textheight with textwidth in the “width”
              argument of the second minipage environment (!!!);


            • finally, I added noindent before the first minipage
              (I had previously overlooked this!).


            However, you are trying to bypass (La)TeX pagination methods by hand in a way I deem incorrect; are you aware of the wrapfig package?




            Update



            Here’s an example of how you could use the wrapfigure environment (requires the wrapfig package). Note that, owing to the unusual height of the group of equations, it is advisable to specify explicitly the number of “virtual lines” in the narrower part: this is done via the first optional argument of the wrapfigure environment. In this case, a value of 10 seems adequate. Recall that equations are assumed to take up the equivalent of three lines.



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of
            usepackagewrapfig

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            Testo che precede la parte nella quale si vuole inserire la figura a margine.
            Si assume che la figura debba stare nel margine emphesterno
            (( texttto=textitouter )).

            beginwrapfigure[10]o.35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endwrapfigure

            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -grhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations

            Combinando le due equazioni, si ottiene
            (aggiungo questo commento al solo scopo
            di dimostrare che siamo tornati alla giustezza piena):
            %
            beginequation
            % setlengthfboxsep0cm % ???
            % setlengthfboxrule0pt
            dep = -gFramathbfpRTdez
            quadLongrightarrowquad
            Fradepdez= -gFramathbfpRT
            labeleq086.3
            % \ % ??? (!!!)
            endequation

            enddocument


            Note also that it is a very bad idea to use labels like eq086.3: always use symbolic labels.



            The output for the second example follows:



            Output for the second example






            share|improve this answer















            Have a look at this (same remarks as Bernard’s):



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            noindentbeginminipage[c].6textwidth
            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -g,rhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations
            endminipagequadhfill
            %
            beginminipage[c].35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endminipage

            bigskip

            Combinando le due equazioni, si ottiene:
            %
            beginequation
            setlengthfboxsep0cm
            setlengthfboxrule0pt
            dep = -g,FramathbfpR,Tdez,Rightarrow, Fradepdez= -g,FratextbfpR,Tlabeleq086.3 \
            endequation

            enddocument


            Here’s the output:



            Output of the code



            Note the following points, among the others:



            • I use the [c] position specifier to align the two minipages
              at their vertical center, without having to tamper with the
              vertical space inside the rightmost one;


            • do not use \ to separate paragraphs inside the minipages;


            • I use & and && inside the align environment,
              as Bernard has already taught
              you;


            • I replaced textheight with textwidth in the “width”
              argument of the second minipage environment (!!!);


            • finally, I added noindent before the first minipage
              (I had previously overlooked this!).


            However, you are trying to bypass (La)TeX pagination methods by hand in a way I deem incorrect; are you aware of the wrapfig package?




            Update



            Here’s an example of how you could use the wrapfigure environment (requires the wrapfig package). Note that, owing to the unusual height of the group of equations, it is advisable to specify explicitly the number of “virtual lines” in the narrower part: this is done via the first optional argument of the wrapfigure environment. In this case, a value of 10 seems adequate. Recall that equations are assumed to take up the equivalent of three lines.



            % My standard header for TeX.SX answers:
            documentclass[a4paper]article % To avoid confusion, let us explicitly
            % declare the paper format.

            usepackage[T1]fontenc % Not always necessary, but recommended.
            % End of standard header. What follows pertains to the problem at hand.

            usepackage[italian]babel
            usepackageamsmath
            % usepackagecaption
            usepackagecapt-of
            usepackagewrapfig

            usepackagemwe % for this MWE only

            newcommand*de[1]mathop!mathrmd#1 % stub
            newcommand*Fra[2]frac#1#2 % ???



            begindocument

            Testo che precede la parte nella quale si vuole inserire la figura a margine.
            Si assume che la figura debba stare nel margine emphesterno
            (( texttto=textitouter )).

            beginwrapfigure[10]o.35textwidth
            centering
            includegraphics[width=0.8linewidth]image
            captionoffigureAndamento della densit`a con la quota
            labelfig:adiabatica
            endwrapfigure

            In un textitP.B.L., in quiete, la forza di gravit`a bilancia esattamente
            la forza dovuta al gradiente verticale di pressione, vale pertanto l'equazione
            idrostatica dell'atmosfera, secondo la quale, la pressione decresce con la
            quota.

            Questa relazione conserva la sua validit`a anche in situazioni reali, ossia
            non statistiche:
            beginsubequations
            beginalign
            dep &= -grhodez
            && textEquaz. Idrostatica
            labeleq086 \
            mathbfp &= rho RT = FraRTVlabeleq086.1 \
            rho &= FramathbfpRTlabeleq086.2
            && textEquaz. di Stato
            endalign
            endsubequations

            Combinando le due equazioni, si ottiene
            (aggiungo questo commento al solo scopo
            di dimostrare che siamo tornati alla giustezza piena):
            %
            beginequation
            % setlengthfboxsep0cm % ???
            % setlengthfboxrule0pt
            dep = -gFramathbfpRTdez
            quadLongrightarrowquad
            Fradepdez= -gFramathbfpRT
            labeleq086.3
            % \ % ??? (!!!)
            endequation

            enddocument


            Note also that it is a very bad idea to use labels like eq086.3: always use symbolic labels.



            The output for the second example follows:



            Output for the second example







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 10 at 18:45

























            answered Feb 7 at 18:05









            GuMGuM

            16.6k2457




            16.6k2457












            • Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

              – Antonio
              Feb 7 at 19:55

















            • Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

              – Antonio
              Feb 7 at 19:55
















            Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

            – Antonio
            Feb 7 at 19:55





            Thank you for the precious and very interesting very interesting exhibition. I use wrapfigure but I have difficulty using it, maybe I have not acquired a good practice

            – Antonio
            Feb 7 at 19:55

















            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%2f473801%2fposition-figure-left-right-center-minipage-wrapfigure-etc-and-equation%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






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?