Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (69)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (9899)

  • Revision 6d0097737d : Refactor SPLITMV in RD to a special case. SPLITMV shares very little code with

    8 août 2012, par Daniel Kang

    Changed Paths : Modify /vp8/encoder/rdopt.c Refactor SPLITMV in RD to a special case. SPLITMV shares very little code with the other inter modes. Change-Id : I0beee95de1fbedeea1f71650951ffc7db3a118eb

  • Clarified the transient nature of `clip.setText`

    8 août 2013, par JamesMGreene
    Clarified the transient nature of `clip.setText`
    

    Closes #209.

  • How render latex fonts and formulas in Cairo C ?

    15 octobre 2020, par Karl

    I've tried the next steps :

    


      

    1. A standalone tex file :
    2. 


    


    \documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\begin{document}

\[ \sum_{i=1}^{n}i^3=\left( \sum_{i=1}^{n}i \right)^2 \]

\end{document}


    


      

    1. I've compiled with this :
    2. 


    


    latex file.tex


    


    It means : pdfTeX Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex) to got the dvi file.

    


      

    1. Transform my dvi to svg with the next :
    2. 


    


    dvisvgm --libgs=/usr/local/Cellar/ghostscript/9.53.3/lib/libgs.9.53.dylib file.dvi


    


    Here I got the first trouble

    


    When I open my svg it render with fake symbols in Chrome, but in Safari I obtain a success with it. However I discard that and I continue with Cairo.

    


    #include &#xA;#include <librsvg></librsvg>rsvg.h>&#xA;#include &#xA;&#xA;int main(void){&#xA;&#xA;    cairo_surface_t *surface;&#xA;    cairo_t *cr;&#xA;    RsvgHandle *handle;&#xA;&#xA;    /* Code */&#xA;&#xA;    if( (handle = rsvg_handle_new_from_file("file.svg", NULL)) == NULL ){&#xA;        printf("Error trying to load a SVG file\n");&#xA;    }&#xA;&#xA;    if( rsvg_handle_render_cairo(handle, cr) != TRUE ){&#xA;        printf("Error trying to draw a SVG file\n");&#xA;    }&#xA;&#xA;    cairo_surface_write_to_png(surface, "image.png");&#xA;    cairo_destroy(cr);&#xA;    cairo_surface_destroy(surface);&#xA;&#xA;    return 0;&#xA;&#xA;}&#xA;

    &#xA;

    And I render this :

    &#xA;

    result

    &#xA;

    That symbols are the same in Chrome. When I open my svg it looks at last lines like this :

    &#xA;

    <text class="&#x27;f1&#x27;" x="&#x27;138.107022&#x27;" y="&#x27;-25.204175&#x27;">n</text>&#xA;<text class="&#x27;f4&#x27;" x="&#x27;133.374191&#x27;" y="&#x27;-22.215398&#x27;"></text>&#xA;<text class="&#x27;f1&#x27;" x="&#x27;134.116478&#x27;" y="&#x27;-0.996264&#x27;">i</text>&#xA;<text class="&#x27;f3&#x27;" x="&#x27;136.935205&#x27;" y="&#x27;-0.996264&#x27;">=1</text>&#xA;<text class="&#x27;f0&#x27;" x="&#x27;149.425099&#x27;" y="&#x27;-12.750829&#x27;">i</text>&#xA;<text class="&#x27;f3&#x27;" x="&#x27;152.857357&#x27;" y="&#x27;-16.864325&#x27;">3</text>&#xA;<text class="&#x27;f2&#x27;" x="&#x27;160.09406&#x27;" y="&#x27;-12.750829&#x27;">=</text>&#xA;<text class="&#x27;f4&#x27;" x="&#x27;170.610139&#x27;" y="&#x27;-29.787102&#x27;"></text>&#xA;<text class="&#x27;f1&#x27;" x="&#x27;183.230082&#x27;" y="&#x27;-25.204175&#x27;">n</text>&#xA;<text class="&#x27;f4&#x27;" x="&#x27;178.49725&#x27;" y="&#x27;-22.215398&#x27;"></text>&#xA;<text class="&#x27;f1&#x27;" x="&#x27;179.239538&#x27;" y="&#x27;-0.996264&#x27;">i</text>&#xA;<text class="&#x27;f3&#x27;" x="&#x27;182.058265&#x27;" y="&#x27;-0.996264&#x27;">=1</text>&#xA;<text class="&#x27;f0&#x27;" x="&#x27;194.548158&#x27;" y="&#x27;-12.750829&#x27;">i</text>&#xA;<text class="&#x27;f4&#x27;" x="&#x27;197.980417&#x27;" y="&#x27;-29.787102&#x27;"></text>&#xA;<text class="&#x27;f3&#x27;" x="&#x27;205.867527&#x27;" y="&#x27;-27.722624&#x27;">2</text>&#xA;

    &#xA;

    So something fail.

    &#xA;

    In the other hand I'de like to say that pig-config --cflags librsvg-2.0 shows the right output but when I read the Headers there's a WARNING there about Cairo users :

    &#xA;

    #if !defined (__RSVG_RSVG_H_INSIDE__) &amp;&amp; !defined (RSVG_COMPILATION)&#xA;#warning "Including <librsvg></librsvg>rsvg-cairo.h> directly is deprecated."&#xA;#endif&#xA;&#xA;#ifndef RSVG_CAIRO_H&#xA;#define RSVG_CAIRO_H&#xA;&#xA;#include &#xA;

    &#xA;

    And that's the reason to include rsvg header instead of Cairo-svg cause it includes that yet :

    &#xA;

    #ifndef RSVG_H&#xA;#define RSVG_H&#xA;&#xA;#define __RSVG_RSVG_H_INSIDE__&#xA;&#xA;#include &#xA;#include <gio></gio>gio.h>&#xA;&#xA;#include &#xA;#include gdk-pixbuf.h>&#xA;&#xA;G_BEGIN_DECLS&#xA;&#xA;/* Code and Defs */&#xA;&#xA;G_END_DECLS&#xA;&#xA;#include "librsvg-features.h"&#xA;#include "rsvg-cairo.h"&#xA;&#xA;

    &#xA;

    But there's no any documentation about it.

    &#xA;

    And the last question :

    &#xA;

    What's the best way to render a latex formula in a mp4 video format ?

    &#xA;

    I mean, I've tried with Cairo and then put it in a video. but There's better results rendering that formula directly with FFMPEG ? I found some results with python but sincerely I'm tired with it. I'm looking for different ways. The purpose in this : Use C code.

    &#xA;