Sin resumen de edición
 
Sin resumen de edición
Línea 2: Línea 2:
/* this stylesheet is used when generating a PDF with PrinceXML or any other tool that understands the CSS used. */
/* this stylesheet is used when generating a PDF with PrinceXML or any other tool that understands the CSS used. */
/* define a page */
/* define a page */
@page {
  size: 8.5in 11in;
  margin-left:1cm;
margin-right:1cm;
margin-top:1cm;
margin-bottom:1cm;
 
}


@page:first {
  /* Página tamaño carta, márgenes 1cm por lado */
  size: 8.5in 11in;
  @page {
  margin-left:1cm;
    size: 8.5in 11in;
margin-right:1cm;
    margin: 1cm;
margin-top:1cm;
    @footnotes {
margin-bottom:1cm;
      border-top: 0.6pt solid black;
}
      padding-top: 8pt;
    }
  }


div.frontcover {
   /* Primera página (portada): sin márgenes ni numeración */
   page: cover;
   @page:first {
   width: 100%;
   margin: 1cm;
   height: 100%;  
   @bottom-right { content: normal; }
   text-align:center;
   @bottom-left { content: normal; }
   position:relative;
   }
  top:25%;
   bottom:50%;
}


/* styles for the right hand spread
  /* Página izquierda */
Bottom left we display the title of the book, bottom right the page using a CSS counter, top right the content of the current chapter */
  @page:left {
@page:right{  
    @bottom-left {
  @bottom-left {
      content: counter(page);
      margin: 1pt 0 25pt 0;
      font-size: 9pt;
      border-top: .25pt solid #666;
      margin: 10pt 0 25pt 0;
  content: "Boletín de Publicaciones Científicas del Personal Académico del CIESAS";
      border-top: 0.25pt solid #666;
      font-size: 9pt;
    }
      color: #333;
    @bottom-right {
  }
      content: 'Boletín de Publicaciones Científicas del Personal Académico del CIESAS';
  @bottom-right {
      font-size: 9pt;
      margin: 1pt 0 25pt 0;
      color: #333;
      border-top: .25pt solid #666;
      margin: 10pt 0 25pt 0;
      counter-increment: page;
      border-top: 0.25pt solid #666;
      content: "Page " counter(page) "/" counter(pages);
    }
      /*content: counter(page);*/
  }
      font-size: 9pt;
  }
  @top-right {
    content:  string(doctitle);
    margin: 15pt 0 10pt 0;
    font-size: 9pt;
    color: #333;
  }
}


/* styles for the left hand spread
  /* Página derecha */
Bottom right book title, bottom left current page */
  @page:right {
@page:left {
    @bottom-left {
      content: 'Boletín de Publicaciones Científicas del Personal Académico del CIESAS';
      font-size: 9pt;
      color: #333;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
    @bottom-right {
      content: counter(page);
      font-size: 9pt;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
    @top-right {
      content: string(doctitle);
      font-size: 9pt;
      color: #333;
      margin: 15pt 0 10pt 0;
    }
  }


  @bottom-right {
  /* Portada */
      margin: 10pt 0 25pt 0;
  div.frontcover {
      border-top: .25pt solid #666;
  page: cover;
    content: "Boletín de Publicaciones Científicas del Personal Académico del CIESAS";
  text-align: center;
      font-size: 9pt;
  display: block;
      color: #333;
  padding-top: 5cm;
  }
  }
  @bottom-left {
      margin: 10pt 0 25pt 0;
      border-top: .25pt solid #666;
      counter-increment: page;
      content: "Page " counter(page) "/" counter(pages);
      /*content: counter(page);*/
      font-size: 9pt;
  }
}


/* first page */
  @page cover {
@page:first {
  @bottom-right {
    content: normal;
     margin: 0;
     margin: 0;
   }
   }


   @bottom-left {
   /* Cuerpo del documento */
     content: normal;
  body {
     margin: 0;
    /*counter-reset: page;*/
    font-family: 'Lucida Sans Unicode', sans-serif;
    line-height: 1.5;
    font-size: 11pt;
     color: #000;
     background: #fff !important;
   }
   }
}


/* reset chapter and figure counters on the body */
h1 {
body {
    text-align: center;
counter-reset: page;
    font-size: 12pt;
font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
  }
line-height: 1.5;
font-size: 11pt;


}
  h2, h3, h4, h5 {
    font-weight: bold;
    page-break-after: avoid;
    page-break-inside: avoid;
  }


h1{text-align:center; font-size:22pt; }
  h2 + p, h3 + p {
    page-break-before: avoid;
  }


/* get the title of the current chapter - this will be the content of the h1
  /* Capítulos */
reset figure counter as figures start from 1 in each chapter */
  h3 {
h3 {
    string-set: doctitle content();
     page-break-before: verso;
     page-break-before: left;
    counter-reset: footnote;
     line-height: 1.3;
     line-height: 1.3;
     font-size:18pt;
     font-size: 18pt;
  }
 
  h3.mw-headline:before {
    counter-increment: chapternum;
    content: counter(chapternum) " ";
  }
 
h1.firstHeading {
    font-size:22pt;
    text-aling:center;
    font-style:none;
}
}


/* increment chapter counter */
  /* Tablas */
h3.mw-headline:before {
  table {
    page-break-inside: avoid;
  }
 
  /* Imágenes */
  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
    page-break-before: auto;
    page-break-after: auto;
  }
 
  .img_portada, mw-file-element {
    width: 15cm !important;
    margin: 0 auto;
    display: table;
 
  }
 
  .img_ficha {
    width: 5cm !important;
    float: left;
  }
 
  /* Caja de ficha técnica */
  .ficha {
    width: 99%;
    margin: 0 auto 12pt auto;
    padding: 8pt;
    min-height: 150px;
    overflow: hidden;
    background: #33659d3d;
    border-radius: 15px;
    display: table;
    page-break-inside: avoid;
    clear: both;
  }
 
  /* TOC - Tabla de contenidos */
  #toc {
    margin: 5cm;
  }
 
  ul.toc {
    list-style: none;
    margin: 0;
    padding: 0;
  }
 
  ul.toc li {
    line-height: 2;
  }


}
  ul.toc li a {
    text-decoration: none;
  }
 
  .tocnumber {
    display: none;
  }
 
  .toclevel-1 {
    font-size: 18pt;
  }


  /* Agregar número de página a enlaces en TOC */
  ul.toc a::after {
    content: leader('.') target-counter(attr(href), page);
  }


h2,h3,h4,h5 {
  /* Estilo de enlaces */
font-weight: bold;
  a {
page-break-after: avoid;
    color: #000;
page-break-inside:avoid;
    text-decoration: none;
}
  }


h2+p, h3+p {
  a[href]:after {
page-break-before: avoid;
    content: " (" attr(href) ")";
}
    font-size: 10pt;
  }


table {
  a.xref::after {
page-break-inside: avoid;
    content: ' (p. ' target-counter(attr(href url), page) ')';
}
  }


ul.toc {
  /* Footnotes */
list-style: none;
  .fn {
margin: 0;
    float: footnote;
padding: 0;
    counter-increment: footnote;
}
  }


/* create page numbers using target-counter in the TOC */
  .fn::footnote-call {
ul.toc a::after {
    content: counter(footnote);
  content: leader('.') target-counter(attr(href), page);
    font-size: 9pt;
}
    vertical-align: super;
  }


ul.toc li {
  .fn::footnote-marker {
line-height: 2;
    font-weight: bold;
}
  }


ul.toc li a {
  /* Contenedor */
text-decoration: none;
  #content,
}
   .mw-body,
#toc {
   .mw-parser-output {
   margin-top: 5cm;
    width: 100% !important;
   margin-bottom: 5cm;
    margin: 0 !important;
  margin-left: 5cm;
    padding: 0 !important;
}
  }
ul li {
  list-style: square;
}
.tocnumber {display:none}
.toclevel-1 {
font-size: 18pt;
}
a {
color: #000;
}


/* add page number to cross references */
   #pagina {
a.xref:after {
    padding: 0;
   content: " (page " target-counter(attr(href, url), page) ")";
    margin-left: 2mm;
}
    margin-right: 2mm;
#pagina {
    padding-top: 0;
padding: 0;
  }
margin-left: 0;
margin-right: 0;
padding-top: 0;
}


.img_portada {
  /* Ocultar elementos no deseados del skin Minerva */
width:23cm!important;
  .header,
margin:0 auto;
  .minerva-header,
page-break-before: auto;
  .minerva-footer,
page-break-after: auto;
  .minerva-navigation,
page-break-inside: avoid;
  .mw-ui-icon,
display:table;
  .toggle,
}
  .navbox,
.img_ficha {
  .catlinks,
width:5cm!important;
  .printfooter,
float:left;
  .mw-editsection,
}
  #footer,
.ficha {
  #mw-navigation,
width:99%;
  #mw-page-base,
margin-right:auto;
  #mw-head,
margin-left:auto;
  .vector-menu,
padding-left: 8pt;
  .minerva-banner,
padding-right: 8pt;
  .minerva-toggle,
padding-bottom: 8pt;
  .minerva-user-menu,
margin-bottom: 12pt;
  .minerva-page-actions,
clear: both;
  .suggestions {
min-height: 150px;
    display: none !important;
overflow: hidden;
  }
background: #33659d3d;
border-radius: 15px;
padding-top: 8pt;
display:table;
page-break-inside: avoid;
}
button {
display:none!important;
}
.header-container, .minerva-footer {display:none;}

Revisión del 16:58 10 oct 2025

/* Los estilos CSS colocados aquí afectarán la impresión */
/* this stylesheet is used when generating a PDF with PrinceXML or any other tool that understands the CSS used. */
/* define a page */

  /* Página tamaño carta, márgenes 1cm por lado */
  @page {
    size: 8.5in 11in;
    margin: 1cm;
    @footnotes {
      border-top: 0.6pt solid black;
      padding-top: 8pt;
    }
  }

  /* Primera página (portada): sin márgenes ni numeración */
  @page:first {
  margin: 1cm;
  @bottom-right { content: normal; }
  @bottom-left { content: normal; }
  }

  /* Página izquierda */
  @page:left {
    @bottom-left {
      content: counter(page);
      font-size: 9pt;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
    @bottom-right {
      content: 'Boletín de Publicaciones Científicas del Personal Académico del CIESAS';
      font-size: 9pt;
      color: #333;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
  }

  /* Página derecha */
  @page:right {
    @bottom-left {
      content: 'Boletín de Publicaciones Científicas del Personal Académico del CIESAS';
      font-size: 9pt;
      color: #333;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
    @bottom-right {
      content: counter(page);
      font-size: 9pt;
      margin: 10pt 0 25pt 0;
      border-top: 0.25pt solid #666;
    }
    @top-right {
      content: string(doctitle);
      font-size: 9pt;
      color: #333;
      margin: 15pt 0 10pt 0;
    }
  }

  /* Portada */
  div.frontcover {
  page: cover;
  text-align: center;
  display: block;
  padding-top: 5cm;
  }

  @page cover {
    margin: 0;
  }

  /* Cuerpo del documento */
  body {
    /*counter-reset: page;*/
    font-family: 'Lucida Sans Unicode', sans-serif;
    line-height: 1.5;
    font-size: 11pt;
    color: #000;
    background: #fff !important;
  }

h1 {
    text-align: center;
    font-size: 12pt;
  }

  h2, h3, h4, h5 {
    font-weight: bold;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  h2 + p, h3 + p {
    page-break-before: avoid;
  }

  /* Capítulos */
  h3 {
    string-set: doctitle content();
    page-break-before: left;
    counter-reset: footnote;
    line-height: 1.3;
    font-size: 18pt;
  }

  h3.mw-headline:before {
    counter-increment: chapternum;
    content: counter(chapternum) " ";
  }

h1.firstHeading {
    font-size:22pt;
    text-aling:center;
    font-style:none;
}

  /* Tablas */
  table {
    page-break-inside: avoid;
  }

  /* Imágenes */
  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
    page-break-before: auto;
    page-break-after: auto;
  }

  .img_portada, mw-file-element {
    width: 15cm !important;
    margin: 0 auto;
    display: table;

  }

  .img_ficha {
    width: 5cm !important;
    float: left;
  }

  /* Caja de ficha técnica */
  .ficha {
    width: 99%;
    margin: 0 auto 12pt auto;
    padding: 8pt;
    min-height: 150px;
    overflow: hidden;
    background: #33659d3d;
    border-radius: 15px;
    display: table;
    page-break-inside: avoid;
    clear: both;
  }

  /* TOC - Tabla de contenidos */
  #toc {
    margin: 5cm;
  }

  ul.toc {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  ul.toc li {
    line-height: 2;
  }

  ul.toc li a {
    text-decoration: none;
  }

  .tocnumber {
    display: none;
  }

  .toclevel-1 {
    font-size: 18pt;
  }

  /* Agregar número de página a enlaces en TOC */
  ul.toc a::after {
    content: leader('.') target-counter(attr(href), page);
  }

  /* Estilo de enlaces */
  a {
    color: #000;
    text-decoration: none;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  a.xref::after {
    content: ' (p. ' target-counter(attr(href url), page) ')';
  }

  /* Footnotes */
  .fn {
    float: footnote;
    counter-increment: footnote;
  }

  .fn::footnote-call {
    content: counter(footnote);
    font-size: 9pt;
    vertical-align: super;
  }

  .fn::footnote-marker {
    font-weight: bold;
  }

  /* Contenedor */
  #content,
  .mw-body,
  .mw-parser-output {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #pagina {
    padding: 0;
    margin-left: 2mm;
    margin-right: 2mm;
    padding-top: 0;
  }

  /* Ocultar elementos no deseados del skin Minerva */
  .header,
  .minerva-header,
  .minerva-footer,
  .minerva-navigation,
  .mw-ui-icon,
  .toggle,
  .navbox,
  .catlinks,
  .printfooter,
  .mw-editsection,
  #footer,
  #mw-navigation,
  #mw-page-base,
  #mw-head,
  .vector-menu,
  .minerva-banner,
  .minerva-toggle,
  .minerva-user-menu,
  .minerva-page-actions,
  .suggestions {
    display: none !important;
  }