When using the publishing tool, How can I change the font /font size for specific lines of code?
    조회 수: 14 (최근 30일)
  
       이전 댓글 표시
    
I am trying to make a Word document using MATLAB, and want certain headers to have a different font color, or text size. How would I go about doing this? I have R2017A
댓글 수: 0
답변 (1개)
  Baptiste Ottino
      
 2017년 8월 3일
        
      편집: Baptiste Ottino
      
 2017년 8월 3일
  
      I assume you use the publish function to output your Word file. The good thing about that is that unlike html or LaTeX outputs, you don't have to fiddle with an xsl file that has to be read by Matlab, and you can adapt the style directly in MS Word without having to call the publish function again.
Notice that in your Word document, the "%%" tag from your m-file was transformed into "Heading 1" and "Heading 2" header styles. The easiest way to change them is to create a new Style Set in Word and to apply it to your document.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Adding custom doc에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!