2016-10-13 36 views
5

के साथ एक चाप ड्राइंग मुझे मैथजेक्स और लेटेक्स 2 एचटीएमएल 5 (http://latex2html5.com/ से) के साथ एक चाप ड्राइंग करने के बारे में कोई समस्या है।पस्ट्रिक्स और लेटेक्स 2 एचटीएमएल 5

मैं ऊपर इन 2 पुस्तकालयों के साथ इस स्कीमा आकर्षित करने के लिए करना चाहते हैं:

Schema to repoduce

मेरे मुद्दा यह है कि मैं छोड़ दिया जो लिंक EV और DE राज्यों पर 2 चाप खींचें नहीं कर सकता है।

ऊपर के लिंक पर, मैंने किया था:

<script type="tex/latex"> 

\begin{center} 
\begin{pspicture}(-4,-4)(4,4) 

\pscircle(-3.3,2.5){0.4} 
\pscircle(-3.3,-2.5){0.4} 
\pscircle(3.3,-2.5){0.4} 
\pscircle(3.3,2.5){0.4} 

\psline{->}(-2.9,2.5)(2.9,2.5) 
\rput(0,2.8){00} 

\psline{->}(3.3,2.1)(3.3,-2.1) 
\rput(3.6,0){00} 

\psline{->}(2.9,-2.5)(-2.9,-2.5) 
\rput(0,-2.8){01,11} 

\psarc[fillcolor=white]{->}(-3.7,0){2}{-90}{90} 

\end{pspicture} 
\end{center} 

    </script> 

    <script type="text/javascript"> 
    $('body').latex(); 
    </script> 

लाइन: पहला, fillcolor नीले रंग की है और बाद के अंतराल:

\psarc[fillcolor=white]{->}(-3.7,0){2}{-90}{90} 

चिंताओं इस हिस्से लेकिन परिणाम अच्छा नहीं है कोण भी अच्छा नहीं है (मैं चाहता हूं कि 2 आर्कें लंबवत हों)।

अधिक आम तौर पर, मैं latex2html5 लाइब्रेरी के साथ स्कीमा (यहां विभिन्न आर्क्स के साथ) आकर्षित करने के लिए सूचनाएं प्राप्त करना चाहता हूं। यदि यह संभव नहीं है, तो क्या किसी को जावास्क्रिप्ट लाइब्रेरी पता है (आदर्श रूप से लेटेक्स प्रतिपादन जैसे मैथजेक्स या बिना) जो ऐसा करने की अनुमति दे सकता है? आपके सुझावों के लिए धन्यवाद।

धन्यवाद

+0

अगर मैं इस सवाल के लिए उपयुक्त मंच पर हूँ मैं नहीं जानता, यह StackOverflow पर एक और समूह के लिए निर्देशित किया जा सकता, किसी को भी यह यदि आवश्यक हो तो कर सकता है? धन्यवाद – youpilat13

उत्तर

2

एक चाप आप psplot उपयोग कर सकते हैं आकर्षित, यहाँ एक क्षैतिज चाप है, तो आप आप चाहते हैं बनाने के लिए अक्ष बदल सकते हैं। उम्मीद है कि यह मदद करता है।

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
<script type="text/x-mathjax-config"> 
 
    // <![CDATA[ 
 
    MathJax.Hub.Config({ 
 
     TeX: {extensions: ["AMSmath.js", "AMSsymbols.js"]},  
 
     extensions: ["tex2jax.js"], 
 
     jax: ["input/TeX", "output/HTML-CSS"], 
 
     showProcessingMessages : false, 
 
     messageStyle : "none" ,  
 
     showMathMenu: false , 
 
     tex2jax: { 
 
      processEnvironments: true, 
 
      inlineMath: [ ['$','$'], ["\(","\)"] ], 
 
      displayMath: [ ['$$','$$'], ["\[","\]"] ], 
 
      preview : "none", 
 
      processEscapes: true 
 
     }, 
 
     "HTML-CSS": { linebreaks: { automatic:true, width: "latex-container"} } 
 
    }); 
 
    // ]]> 
 
</script> 
 
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML"></script> 
 
<script type="text/javascript" src="https://raw.githubusercontent.com/Mathapedia/LaTeX2HTML5/master/latex2html5.min.js"></script> 
 
<link rel="stylesheet" href="https://raw.githubusercontent.com/Mathapedia/LaTeX2HTML5/master/css/latex2html5.css" type="text/css"> 
 
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Arbutus+Slab" type="text/css"> 
 
</head> 
 
<div id="aa"></div> 
 
<script type="tex/latex"> 
 
\begin{center} 
 
\begin{pspicture}(-4,-4)(4,4) 
 
\psplot[algebraic,linewidth=1.5pt]{-3.14}{3.14}{cos(x/2)} 
 
\end{pspicture} 
 
\end{center} 
 
\end{document} 
 
    </script> 
 

 
    <script type="text/javascript"> 
 
    $('body').latex(); 
 
    </script> 
 
</html>

+0

बहुत धन्यवाद, मैं इस – youpilat13

+0

के साथ प्रयास करने जा रहा हूं, यह काम कर रहा है लेकिन चाप के अंत में एक तीर जोड़ने के लिए असंभव है, मैंने \ psplot [बीजगणित, linewidth = 1.5pt, तीर = -> के साथ एक तीर जोड़ने की कोशिश की ] {- 3.14} {3.14} {cos (x/2)} – youpilat13

+0

@ youpilat13 हाँ मैंने कोशिश की है, और इसके बारे में मैन्युअल खोजने का प्रयास करें, लेकिन इसका कोई फायदा नहीं हुआ। आप चाप के अंत में एक तीर जोड़ सकते हैं। –

संबंधित मुद्दे